Viewing 15 posts - 781 through 795 (of 1,344 total)
you cannot put a recordset into a parameter.
try sp_execute_Sql
select @SQLStatement = 'select @Myvar = low FROM [' + @servername + '].master.dbo.spt_values WHERE number = 1 and type = ''E'''
exec sp_executeSql...
October 18, 2005 at 9:03 am
Without your table schema, relationships, data, and desired result it is extremely difficult to help you.
Please post what your tables, relationships, and sample data.
http://www.aspfaq.com/etiquette.asp?id=5006
October 17, 2005 at 4:57 pm
Count(distinct email) only counts the distinct emails from your resultset.
if you do
select distinct region, c2.classID, count(*)
From MyTable
Group by region, c2.classID
But I'm not exactly sure, post some data if you...
October 15, 2005 at 11:06 pm
Built myself a
P4 2.8c ghz hyperthread
MSI 865PE NEO PLS Motherboad w/ dual channel memory.
1.5 Gig Ram
80 g seagate barracuda IDE HD
Lite on CD-RW
EVGA NVIDIA Fx5600
LeadTek TV2000XP Video Capture...
October 14, 2005 at 9:50 am
Use DTS, BCP, or Query analyzer.
For QA you first have to set your results to be comma delimited.
Tools --> Options --> Results tab --> Results output format pick comma delimited. ...
October 14, 2005 at 9:31 am
Correct, your replication will fail if the data is not right when that row is updated from the publication.
The only type of replication you can use if you want to...
October 14, 2005 at 9:26 am
I suggest you pick up a book, or read books online about dts.
Also http://www.sqldts.com/ is a great place to pick up information about dts.
Does your destination table have a column,...
October 14, 2005 at 9:21 am
doesn't matter
what are you trying to do?
what is the value of the @ReverseFields?
Replace the exec with a PRINT and what is output in the messages window?
You need to see...
October 13, 2005 at 8:56 pm
The error means exactly what it says.
Your inserting data into a column in a table that the data type is a numeric, but the data your inserting is in a...
October 13, 2005 at 8:54 pm
I'm pretty sure you'll need dynamic sql to pass the servername as a parameter, and also pretty sure you cannot declare a cursor in dynamic sql, so I don't believe...
October 13, 2005 at 8:52 pm
Example
declare @String varchar(100)
set @String = 'M Carlos'
select Stuff(@String, Patindex('[A-Z] %', @String ) +1, 1, 'h ')
Result
'Mh Carlos'
OOPS EDITED:
update mytable
set myColumn = Stuff(@String, Patindex('[A-Z] %', myColumn) +1, 1, 'h ')
where Patindex('[A-Z]...
October 13, 2005 at 2:12 pm
You can run a profile trace analyzing locks, Pick the events you want to monitor and wait for it to happen again.
October 13, 2005 at 10:46 am
Its likely in the @ReversFields parameter.
Try to do a Print 'SELECT ' + @ReverseFields + ' = COUNT(ItemID) FROM biditems where EventID in (' + @EventID + ')'
and see what...
October 13, 2005 at 10:38 am
when you are creating your package on your pump task it asks you for a table/view or a query. In the query window type in your stored procedure name.
Dts will...
October 13, 2005 at 10:21 am
You'll have to do it in a couple of updates though. And you may have to create an additional update if there are single characters at the beginning of the...
October 13, 2005 at 10:16 am
Viewing 15 posts - 781 through 795 (of 1,344 total)