Viewing 14 posts - 1 through 14 (of 14 total)
Here's my take on it the column type generation, which includes computed columns, UDTs and the numeric & decimal types:
[font="Courier New"]
SELECTQUOTENAME(c.name) + ' '
+CASE WHEN c.is_computed = 0 THEN
CASE...
March 21, 2012 at 10:52 am
This is just a table I created to test:
CREATE TABLE [dbo].[Table_1](
[col1] [nchar](10) NOT NULL,
[col2] [numeric](25, 12) NULL,
[col3] [xml] NULL,
[col4] [decimal](18, 0) NULL,
[col5] [varchar](max) NULL,
[col6] [varbinary](50) NULL,
[col7] [money] NULL,
[col8] [ntext] NULL,
[col9]...
March 21, 2012 at 8:33 am
Not sure if I have done something wrong here, but when generating the script for a table it's not generating the size for DECIMAL & NUMERIC columns?
March 21, 2012 at 4:49 am
As soon as I can convince management that we need Enterprise Edition, I'm sure I will 🙂
December 30, 2008 at 1:09 pm
Thank you all for your feed back, I had resorted to building a dynamic sql string, it looks like that is going to be the best solution for now
December 30, 2008 at 12:53 pm
Have a read of this: http://blogs.msdn.com/sqlserverstorageengine/archive/2008/03/30/sql-server-table-variable-vs-local-temporary-table.aspx
Should help
December 30, 2008 at 9:22 am
Is there really no one else in this community who has experienced this problem and found a suitable solution?
December 30, 2008 at 9:07 am
Hi Andy
Thanks for this info and I can see how it works when running the query
select * from dbo.Contact where lastname = 'green'
However when trying the following, it reverts to...
December 3, 2008 at 5:45 am
OK, here's a simple example that demonstrates my issue, despite the fact that this is such a small data set, it is giving similar executioon plans as my real data....
December 1, 2008 at 3:54 pm
Thanks for sharing your experience, I tried just restarting SQLAgent, and this seems to have had the same effect.
October 30, 2007 at 4:36 am
If the stored procedures are the same within each database, you could create just one copy of each procedure in the master database, mark these master stored procedures as system...
April 22, 2005 at 8:57 am
Have a look here
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=126116&p=2
September 23, 2004 at 6:24 am
DROP TABLE tblRichTest1
-- Create a table
CREATE TABLE tblRichTest1(
Column1 VARCHAR(100),
Column2 VARCHAR(100)
)
GO
-- Add a column
ALTER TABLE tblRichTest1
ADD RichTestID INT IDENTITY
GO
-- Allow updates to system tables
EXEC sp_Configure 'allow updates', 1
RECONFIGURE WITH OVERRIDE
GO
-- Now move...
July 15, 2004 at 9:03 am
This might be useful...
declare @fullname varchar(150),
@space1 int,
@space2 int,
@first varchar(50),
@middle varchar(50),
@Last varchar(50)
set @fullname = 'first last'
select @space1 = CHARINDEX(' ',@fullname)
select @space2 = CHARINDEX(' ',@fullname,@space1+1)
select @first = left(@fullname,@space1-1)
if @space2 >...
November 13, 2003 at 3:30 am
Viewing 14 posts - 1 through 14 (of 14 total)