Viewing 15 posts - 5,536 through 5,550 (of 7,191 total)
I think we've come to the point where we need some sample data. Please provide table DDL in the form of CREATE TABLE statements, data in the form of...
January 24, 2011 at 8:41 am
Whichever way you do it, this line:
and b.event_type = 'open'
needs to come out of the WHERE block and go into the join predicate. Otherwise, your left outer join...
January 24, 2011 at 8:36 am
Yes. First use ROW_NUMBER in a common table expression to get a row number for each of the top four rows in your table ordered by ColumnA. Then...
January 21, 2011 at 4:50 am
So just add a WHERE clause on the end of tertiusdp's code so that only the results for the user you want are returned.
John
January 20, 2011 at 6:17 am
You've posted in an Integration Services forum. Please will you confirm whether you are referring to DTS packages or SSIS packages?
Thanks
John
January 20, 2011 at 5:56 am
As I said before, try it.
You don't use the variables in or after your final CREATE TABLE statement, so it doesn't matter if you kill them.
John
January 20, 2011 at 3:30 am
There's only one way to find out! You may need to put an extra GO in before the CREATE USER statement, since I think the latter may have to...
January 20, 2011 at 3:23 am
Variables only live as long as the batch in which they are created. GO is a batch separator, and so it has the effect of killing all variables. ...
January 20, 2011 at 3:17 am
Please can we see what you've tried so far? Also, DDL in the form of CREATE TABLE statements and sample data in the form of INSERT statements would also...
January 20, 2011 at 3:00 am
I'm afraid I don't understand what the problem is. Please will you post your code to help me?
Thanks
John
January 20, 2011 at 2:45 am
Chances are that only your default instance is listening on the default ports (1433 and 1434). Your named instance will be listening on another port, which is dynamically assigned...
January 20, 2011 at 2:40 am
Of course, the results you get will depend on the date on which you execute the INSERT statement. I think you need to lose the [font="Courier New"]OR 1=1[/font], since...
January 20, 2011 at 2:13 am
With that level of detail, I can't be more specific than to suggest you use the REPLACE function.
Also, have you considered using SSIS instead of bcp? You may find...
January 19, 2011 at 9:33 am
Yes, that's exactly what I had in mind. Try that, and post back if you have any difficulties.
John
January 19, 2011 at 9:28 am
LF
The simplest way is to create a table with one column for each variable. SP1 can then write to that table, and the job can pick up the variables...
January 19, 2011 at 9:19 am
Viewing 15 posts - 5,536 through 5,550 (of 7,191 total)