Viewing 15 posts - 12,856 through 12,870 (of 18,923 total)
Just reread the whole thing...
Can you post the table DDL and some sample data so I can figure it out?
September 27, 2005 at 1:42 pm
You forgot that the db is already case sensitive. Here's how to do it when it's not case sensitive >>
Select name, id from dbo.SysObjects where name = 'sysobjects'
--seek
Select name,...
September 27, 2005 at 1:33 pm
Also the TOP 100 Percent is useless without an order by. You either add the order by if required or drop the TOP 100 PERCENT.
September 27, 2005 at 1:11 pm
SELECT TOP 100 PERCENT dbo.customer.username, SUM(dbo.iheader.total) - SUM(dbo.iheader.paid) AS balance
FROM dbo.customer INNER JOIN
dbo.iheader ON dbo.customer.id = dbo.iheader.guarantor
WHERE (dbo.customer.storeid = 1) AND (dbo.customer.active = 'n')
GROUP BY dbo.customer.username
having SUM(dbo.iheader.total) - SUM(dbo.iheader.paid) =...
September 27, 2005 at 1:11 pm
I can't help you much there as I've never done it...
Can you consider using a dts package for this?
September 27, 2005 at 1:00 pm
So true... I guess he started learning in .NET
.
September 27, 2005 at 12:43 pm
Can you post more information >
- Table definition
- Sample data
- Required results
September 27, 2005 at 11:50 am
Create a linked server that points to that file.
Then select * into NewTableName from LinkedServer.?.?.?
This is assuming that it is a one time deal.
You can also use DTS to do...
September 27, 2005 at 11:48 am
Select right(CitationID, 1) as CitationIDLast from...
September 27, 2005 at 11:29 am
Yes there are. Steve has 6600+ posts and antares is in the high 6K too.
Well I guess I can't really hide in here anymore
September 27, 2005 at 11:28 am
Yes, but it'll have to complete at the next server startup so you're pretty much screwed... unless you have a full backup of the db that can be restored faster...
September 27, 2005 at 11:27 am
Viewing 15 posts - 12,856 through 12,870 (of 18,923 total)