Viewing 15 posts - 166 through 180 (of 181 total)
Also - You can't "build and execute" at the same time. EXEC wants a static string (meaning - something fully built before you pass it to execute), not some...
February 28, 2008 at 8:27 am
Here is what I'm reading on msdn ms152560 (referenced in today's question)
...and these are excerpts...
In reference to the 'sync with backup' option...
Setting this option on the distribution database has no...
February 28, 2008 at 8:11 am
I worked on a project once where I got the 'report' requirements from the Business Analysts, and it simply said they wanted a report for EVERYTHING (literally, that is what...
February 28, 2008 at 6:12 am
Sorry about that, my bad...I jumped too quick.
Matt is correct with the 'char(39)'. I still could not get a similar construct to run in the 'exec' statement.
I had to...
February 27, 2008 at 1:59 pm
If the code you posted is your real stored proc, the first 'if' statement does not have the 'char(39)', but the 'char(39)' is still in the query under the 2nd...
February 27, 2008 at 1:22 pm
The way I would do it is to create a 'StatusTable' that contains the StatusID (S1, S2, etc), and a disposition for the status (open, closed, deferred).
It might look like...
February 27, 2008 at 1:11 pm
Yep, your variable is already set as a varchar (string). You simply concatenate it to the other string in the dynamic sql as the previous post shows. 🙂
February 27, 2008 at 11:52 am
Some very good replies here...
Like some others here, I have no aspirations for management after seeing what they actually do (BORING!). I have an MBA and MS in Comp...
February 26, 2008 at 6:03 am
Nicely said Gail and Jeff...
Doing a little extra especially when it tends to 1) make your job easier such as in the case of utilities for troubleshooting, etc., and 2)...
February 25, 2008 at 6:09 am
Just out of curiousity, since you can't use a table variable in dynamic SQL, could you create a UDF that returns a table that was populated based on some param...
February 13, 2008 at 12:18 pm
I have worked for technical managers who were clueless on the technology we were using, but they thought they were experts (how do they get these jobs?). Then we...
February 7, 2008 at 6:48 am
Consider this, most of the people at your new job probably know LESS than you do about SQL Server 2005. In my experience, the best way to learn about...
January 30, 2008 at 6:20 am
Sorry Brandie, I wasn't referring to all the testing you people were doing to answer the OP...that was interesting. I was referring to a post by 'annejo' about having...
January 29, 2008 at 6:36 am
No wonder applications break so easily. I learned not to use 'select *' in my Database 101 class in college years ago. It was very easy to understand...
January 29, 2008 at 6:18 am
I tend to be a contractor more than a permanent employer because I got tired of working more than 40 hours per week and not getting compensated for it.
I like...
January 25, 2008 at 9:25 am
Viewing 15 posts - 166 through 180 (of 181 total)