Showing posts with label exist. Show all posts
Showing posts with label exist. Show all posts

Sunday, March 11, 2012

Columns referenced inside store procedures may not exist issue

I have a stored procedure which I want to be added to 2 different databases.
However, I run into an issue that some statements in the stored procedure ar
e
referencing columns only exist in one of the databases. I want to SQL Server
to parse those statements only if those columns exist in the database.
Thanks.Sorry, this is not how it works (you could use dynamic SQL, but that is not
generally a good option). You will need to make two versions of the
procedure or add the columns in the other database.
----
Louis Davidson - http://spaces.msn.com/members/drsql/
SQL Server MVP
"Peter" <Peter@.discussions.microsoft.com> wrote in message
news:75D605C4-6843-4E83-8E49-39252BA25FEA@.microsoft.com...
>I have a stored procedure which I want to be added to 2 different
>databases.
> However, I run into an issue that some statements in the stored procedure
> are
> referencing columns only exist in one of the databases. I want to SQL
> Server
> to parse those statements only if those columns exist in the database.
>
> Thanks.

Thursday, February 16, 2012

Column compression

Hi,

I was looking for a column compression functionality in SQL Server Compact and it seems that it doesn't exist (maybe I'm wrong?).

I wonder if the SQL Server Team plan to implement column compression and if yes, when can we expect it?

Thank you for your help!

Can't answer whether this is planned in the future, but can confirm that there is no compression feature in SQL CE now.

Darren

|||There is compression functionality for SQL Server 2005 (http://www.codeproject.com/cs/database/blob_compress.asp). The problem with SQL Server CE is that it does not support stored procedures and you will not be able to use this functionality. If you don't need to update the LOBs in your mobile device you can compress them in SQL Server, replicate them and decompress them at presentation time... but to answer your question we (the SQLCompress.NET people) are planning to create that functionality in SQL Server everywhere (whenever it gets released and functional)...

Column compression

Hi,

I was looking for a column compression functionality in SQL Server Compact and it seems that it doesn't exist (maybe I'm wrong?).

I wonder if the SQL Server Team plan to implement column compression and if yes, when can we expect it?

Thank you for your help!

Can't answer whether this is planned in the future, but can confirm that there is no compression feature in SQL CE now.

Darren

|||There is compression functionality for SQL Server 2005 (http://www.codeproject.com/cs/database/blob_compress.asp). The problem with SQL Server CE is that it does not support stored procedures and you will not be able to use this functionality. If you don't need to update the LOBs in your mobile device you can compress them in SQL Server, replicate them and decompress them at presentation time... but to answer your question we (the SQLCompress.NET people) are planning to create that functionality in SQL Server everywhere (whenever it gets released and functional)...