Viewing 15 posts - 301 through 315 (of 434 total)
I would think that a search ends quicker when you find what you are looking for (EXISTS) rather than searching the entire table to declare that something is not there...
June 27, 2007 at 8:12 am
So it looks like this?
"FirstName" <Tab> "LastName"<Tab>"CompanyName"<CR>
"John"<Tab>"Doe"<CR>
"ACME"<CR>
"John"<Tab>"Doe"<Tab>"ACME"<CR>
"John"<Tab>"Doe"<Tab>"ACME"<CR>
"John"<Tab>"Doe"<Tab>"ACME"<CR>
"John"<Tab>"Doe"<Tab>"ACME"<CR>
"John"<Tab>"Doe"<Tab>"ACME"<CR>
June 27, 2007 at 7:46 am
Is there more than one row of data so it looks like this?
"FirstName" <Tab> "LastName"<Tab>"CompanyName"
"John"<Tab>"Doe"<CR>
"ACME"<CR>
"John"<Tab>"Doe"<CR>
"ACME"<CR>
June 27, 2007 at 7:40 am
If you run into an issue post the rest of your code. I believe that, like all things, cursors in moderation are ok.
June 26, 2007 at 9:57 am
you can use dynamix sql
declare @sql varchar(8000)
set @sql = 'Select * from table1 where field1 in (' + @param1 + ')'
exec (@sql)
when you pass your parameter string you will need...
June 26, 2007 at 9:45 am
Here is a thread where Lowell wrote some code to decipher which bits are set.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=326235
June 25, 2007 at 1:28 pm
Also according to Jeff 12 would be simple and you have it as full. I think you will find that there are a number of other possibilities where both 4...
June 25, 2007 at 1:25 pm
I don't think you accounted for autoshrink being set.
June 25, 2007 at 1:12 pm
I believe it is status in master.dbo.sysdatabases. I don't know the definitions of the integer but they change corresponding to what options you have checked in the database options tab. ...
June 22, 2007 at 2:25 pm
The whole crosstab thing comes up so often that when I get time I go back and look at taking the cursor out of the procedure. I really want to...
June 22, 2007 at 8:08 am
I looked at the procedure when the thread first posted. I even tried to combine mine and yours together because I need something more dynamic. I'm still working on taking...
June 22, 2007 at 7:47 am
I agree with Jeff. Forum posters benefit the forum by providing help and are benefitted by the forum by recieving help. Advertisers benefit the forum by paying for the upkeep...
June 22, 2007 at 7:13 am
JLKs method works if you have a known set of data that you want to crosstab. If it will vary this procedure works pretty well although it uses a cursor. ...
June 21, 2007 at 1:28 pm
use the extended procedure xp_sendmail. Check BOL for the syntax.
June 21, 2007 at 12:13 pm
if package logging is turned on for the package you can right click on the package and click package logs. To see if it is turned on design package, righ...
June 21, 2007 at 12:12 pm
Viewing 15 posts - 301 through 315 (of 434 total)