Viewing 11 posts - 151 through 162 (of 162 total)
I have used a similar procedure to move records in a sequence. I won't repeat the table setup, but I need to point out that I used "1" as...
February 8, 2011 at 9:38 am
This is a very helpful script; thank you for providing it.
Because most of our permissions are assigned by role, and individual users are assigned to roles, having a similar generator...
January 19, 2011 at 3:01 pm
In my experience, every table has a row in sys.sysindexes that can be used to tell the number of rows in the table.
SELECT i.rowcnt, o.name
FROM sys.sysobjects o JOIN sys.sysindexes...
January 11, 2011 at 12:23 pm
I like the script. I would like to see the datetime fields formatted using format 121 so that the second and millisecond precision is retained.
January 10, 2011 at 1:18 pm
To the comment that SQL Server should be able to find these relationships: I'm sure it would be possible to write a parsing engine to determine what each script is...
December 28, 2010 at 11:10 pm
I have not seen anything in SQL Server that will identify for a developer the code that will break when creating a foreign key reference on a table. SQL...
December 28, 2010 at 2:58 pm
SELECT CASE WHEN column_id = MIN(column_id) OVER(PARTITION BY 1) THEN 'INSERT INTO ' + OBJECT_NAME(object_id) + ' (' ELSE '' END + name + CASE WHEN column_id = MAX(column_id)...
December 27, 2010 at 3:46 pm
Another way to solve this problem is to create a temp table in the first procedure. The second procedure looks for the existence of the temp table and adds...
August 13, 2010 at 8:20 pm
It seems to me that this solution will only work if there are only two levels of parent/child relationship. Do you have cases where the relationships go to three...
August 12, 2010 at 6:02 am
The data in the challenge is obviously unrealistic in order to be able to produce the graph. I use graphing in SQL Server for on a regular basis, as...
August 9, 2010 at 7:54 am
The use of the term "schema" in this article is confusing because the term has a specific meaning in SQL Server which differs from its use here. Perhaps using...
August 9, 2010 at 7:36 am
Viewing 11 posts - 151 through 162 (of 162 total)