Viewing 15 posts - 24,811 through 24,825 (of 26,490 total)
Properly used, UDF's good; improperly used, UDF's BAD.
Comes down to an "It depends".
I have a set of tvf that allow me to do As Of queries against our ODS database....
May 8, 2008 at 10:11 am
Anders Pedersen (5/8/2008)
May 8, 2008 at 10:04 am
Use this as a starting pointing:
DECLARE @Query varchar(8000), @ColumnName varchar(50), @vho char(6)
--SELECT @ColumnName = ChannelMapName
--FROM myTable WHERE idNum = 1
--SELECT @vho = vho_cd
--FROM myTable WHERE idNum = 1
set @ColumnName =...
May 8, 2008 at 9:50 am
Frank,
That sort of helps, but doesn't. The output sample at the top of the post doesn't match the sample data at the bottom. I am a visual type...
May 8, 2008 at 9:31 am
Not sure where you are looking in BOL, but my local copy matches the version at Microsoft, and it clearly discusses 5 system databases, including the Resource Database (mssqlsystemresource.mdf/mssqlsystemresource.ldf).
Here is...
May 8, 2008 at 8:41 am
Sugesh Kumar (2/4/2008)
May 8, 2008 at 7:52 am
True, the Resource database is not listed in sys.databases; however, the documentation does refer to it as a special, read-only database that must be located in the same directory as...
May 7, 2008 at 11:19 pm
Actually, I'm still waiting for more information since the four date fields are in four seperate tables. BDate is in TableB, CDate is in TableC, and DDate is in...
May 7, 2008 at 2:51 pm
NEI (Not Enough Information). Still don't know what you are trying to accomplish, plus the code I see just looks wrong from the get go. Plus, you have...
May 7, 2008 at 2:41 pm
Rhetorical question on your part? A good answer would be this: T-SQL is SET based while the other languages you mention (even if OO) are procedural. Many...
May 7, 2008 at 2:38 pm
First, only partial code in your post, so not a real help. Second, why do you need to create a cursor dynamically? What are you try to accomplish?
😎
May 7, 2008 at 2:23 pm
I'd also be interested in seeing enough of the tables DDL, some sample data, and expected results so I could understand the query as well. Looks like you have...
May 7, 2008 at 1:29 pm
Marvin,
No problem. I didn't even notice the error in the code itself. I just thought I'd help fix it to give the first of the month.
😎
May 7, 2008 at 9:35 am
Viewing 15 posts - 24,811 through 24,825 (of 26,490 total)