Viewing 15 posts - 21,286 through 21,300 (of 22,184 total)
I did some tests. For good or for ill, I found that the XML & Table of Numbers worked better than anything else when dealing with large tables and complex...
January 7, 2008 at 10:42 am
You just have to keep the tests honest. I wasn't counting icons and going "Oooh, it's faster." In the simple tests, both processes had a table scan. The one that...
January 7, 2008 at 9:55 am
Very good points. I was just going to start looking up similar solutions in Itzik's books when I saw your post. I figured there was a way to bring a...
January 7, 2008 at 9:15 am
I just tested it on some larger procs. It really is better. Hmmm I'll have to document this one in our best practices doc.
January 7, 2008 at 8:30 am
antonio.collins (1/6/2008)
select * from monitor_hosts where @myList like ('%,'+cast(hostid as varchar(8)+'%')
be faster than this:
select * from monitor_hosts where hostid in (select val from dbo.fListToValues(@myList))
the first statement will always...
January 7, 2008 at 8:14 am
If you're using the function as a table, you can simply join to it. We do it all over the place.
Unfortunately, table valued functions don't have statistics, so if the...
January 7, 2008 at 6:43 am
I agree with Jeff here. Naming tables after the database they're contained in is not going to be helpful. Also, I wouldn't recommend using the module in the names. I'd...
January 7, 2008 at 6:08 am
Inside the SQL Server 2005 folder is a folder called Configuration Tools. Inside there is a tool called SQL Server Configuration Manager. Open that up. In there on the left...
January 7, 2008 at 6:01 am
Is "E" a drive or a share name?
It has to be permission issue from the service account that SQL Server runs under. Not the 'sa' login, but the login...
January 5, 2008 at 6:02 am
So far we only three or four schema per database. We manage our security through a role in the database. The roles get access to stored procedures. The stored procedures...
January 5, 2008 at 5:57 am
To my knowledge, not using this quick way of scripting. If you do an actual export to file you get the option of having a single file or seperate files...
January 4, 2008 at 11:10 am
I'm not sure what you mean. We're not talking about tables, but about stored procedures. If you have a data type of int in the stored procedure, the character length...
January 4, 2008 at 11:06 am
This isn't documented, but does what you want:
exec sp_procedure_params_rowset 'procname'
The -1 returned by the view is the designed method. The procedure, in my mind, is worse. It shows a length...
January 4, 2008 at 10:28 am
Viewing 15 posts - 21,286 through 21,300 (of 22,184 total)