Viewing 15 posts - 181 through 195 (of 498 total)
The problem is that you will need to use dynamic sql for the update statment. Oh BTW: you will also want to declare your variables for the tablename and fieldnames to...
January 27, 2004 at 11:47 am
Then I would hope you have a datetime column or identity column that you could do the order by on.
January 27, 2004 at 11:43 am
True you can't call a stored procedure from within a UDF. However you certainly can use SET. The UDF is very powerful and if you learn to live with it's...
January 26, 2004 at 11:48 am
As I stated it is a "Database Project" that I created. In Visual Studio .Net it is under "Other Projects". When you create the project it will ask you to...
January 23, 2004 at 3:55 pm
You might want to look at the following thread... http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=96968
January 23, 2004 at 3:35 pm
I think what I would do is change your methodology. I prefer to have all my SPs saved as scripts. Anytime I change the SP I do it from the...
January 23, 2004 at 2:36 pm
Very nice Thomas! I still think I would limit the depth level. Leaving it open will ultimately leave you in a bit of a performance and maintenance bind.
January 23, 2004 at 2:31 pm
Here is an example of what I mean.
SET NOCOUNT ON
IF EXISTS(SELECT * FROM sysobjects WHERE id = object_id('NRGroups'))
DROP TABLE NRGroups
CREATE TABLE NRGroups
(ID_ int primary key, PID int, Grp...
January 23, 2004 at 2:11 pm
Now you know why I cringe everytime one of my developers wants to do this! If you put a limit on how many levels deep you will support then you...
January 23, 2004 at 1:32 pm
You got me there Jonathan. However if you don't do it as a correlated subquery it'll return the same results as NOT IN.
January 23, 2004 at 1:09 pm
As Steve pointed out this is a case of lazyness catching up with you! This is the best reason to ALWAYS explicitly list out the fields you want to insert...
January 23, 2004 at 12:14 pm
Ahh. Now I see what you are talking about. And yes it is a function of the ANSI SQL begin unable to compare a NULL to anything. I don't think...
January 23, 2004 at 12:09 pm
Keven,
Even though I work at MS I'm just a developer in same as you when it comes to stuff like this.
You stated...
January 23, 2004 at 11:47 am
This looks to me like you are using a trusted connection string and IIS is not configured correctly as AJ has stated. Can you post your connection string so that we...
January 22, 2004 at 9:24 pm
I would prefer to set up IIS so that it uses a trusted connection to SQL Server. Then when the user logs in have a user table that does the...
January 22, 2004 at 9:04 pm
Viewing 15 posts - 181 through 195 (of 498 total)