Viewing 15 posts - 16 through 30 (of 259 total)
I tried the solution you provided and this is the string it created.
SELECT * FROM #DLFiltered WHERE Active = 1 AND CurrentLevelXID = 10 AND 1=1 AND DownlineLevel...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
July 15, 2008 at 10:13 am
I have tried both version and they work kinda of.
Update b
SET b.SponsorXID = a.XID
FROM [consultant].[Consultant] AS a
...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
July 9, 2008 at 1:45 pm
Not sure I follow?
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
July 9, 2008 at 12:54 pm
I added it as a lookup and it works fine. But I would still like to know how I can right it as a nested expression if you could help.
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
July 2, 2008 at 6:31 am
I did that and it worked. Now I make that query the source for my SSIS package and I recieve the following error:
"ResponseData" cannot convert between unicode and non-unicode string...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 20, 2008 at 12:33 pm
I found that if I CAST it as a varchar then it returns data but then the next question how will that effect the data. This query is the basis...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 20, 2008 at 12:07 pm
That worked. Thanks a lot.
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 11, 2008 at 7:25 am
OK, I tried that example and recieved the following error:
sqlcmd -S hqtst102D\DBA -i ListTables.SQL database="Adventureworks"
Sqlcmd: 'database=': Invalid filename.
Then I tried it like this:
sqlcmd -S hqtst102D\DBA -i ListTables.SQL -v database="Adventureworks"
and recieved...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 11, 2008 at 6:47 am
The only way I found that it might work is like this:
DECLARE @rc INT
SELECT @rc = Count(*) from Temp1
IF @rc =1 AND(Select PaymentTypeXID from #Temp1 )= 3
BEGIN
Select...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 4, 2008 at 6:35 am
Great info. The article really help.
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
June 2, 2008 at 2:18 pm
I think I am working myself in to this:
Took the previous #Temp1 and filtered outthe top level kit:
Select * From #Temp1 t1
WHERE ParentLineItemID = 0
OrderGroupNumber OrderNumber LineItemId ...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
May 28, 2008 at 10:50 am
I figured it out. It was
,'PaymentType' = Case
WHEN a.PaymentTypeXID IN (0,7,9,16) THEN A.[CCName] COLLATE SQL_Latin1_General_CP1_CI_AS
WHEN a.PaymentTypeXID IN (2) THEN 'Certficate'
END
Thanks
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
May 15, 2008 at 3:52 pm
I found the differences;
FROMdbo.uvw_OrderGroupPayment AS A With (NoLock) -- this is a view
INNER JOIN dbo.OrderForm AS B With (NoLock) ON
A.ORderGroupNumber = B.OrderGroupNumber
LEFT OUTER JOIN SharedDimension.dbo.DimPaymentType AS C With (NoLock)...
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
May 15, 2008 at 2:58 pm
I ended up doing a order by and reversing the direction.
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
May 8, 2008 at 10:32 am
I found the issue. It was the connection string was not set correctly in the pass thru query. It was set to different ODBC name on the other workstations.
Thanks,
Art
Database Analyst
Tastefully Simple, Inc.
alorenzini@tastefullysimple.com
" Some days, it's not even worth chewing through the restraints!
May 2, 2008 at 10:11 am
Viewing 15 posts - 16 through 30 (of 259 total)