Viewing 15 posts - 1 through 15 (of 29 total)
I haven't got one to hand but it's all in the sysindexes table. Probably wouldn't take long to write one.
March 3, 2006 at 9:51 am
"Whats the weather like up there in sunny Aberystwyth?"
Sunny of course (amazingly enough I'm not being sarcastic either).
Do you want to send me your list of dates and I'll try...
February 22, 2006 at 8:46 am
Hi
Just to narrow the prob down a bit:
Have you tried with a few hardcoded values e.g.
select cast(convert(char(100),'1980-03-22',101) as datetime) as [Date]
Are the dates in the two different DBs all...
February 22, 2006 at 7:53 am
Hi dec
At first glance I'd say drop the extra 'Select' remove the 'As NextRev'
SELECT @RetVal= MAX(RevNo) + 1
FROM dbo.tblRevision
GROUP BY DocumentID
HAVING (DocumentID = @DocumentID)
And give that a try.
To account...
February 22, 2006 at 7:43 am
Sorry, my reply was a bit lazy. Text field is a CLOB.
In SQL Server 2005 there is an XML data type but I suppose that's not going to help...
February 21, 2006 at 7:38 am
Hi Naren
I'd suggest either using CLOBs (character large objects) or reading up about "select for XML" which may or may not be appropriate for your needs.
All the best
February 21, 2006 at 2:46 am
Bit late in the day to be adding another point but I thought I'd best mention the use of variables in your trigger.
You're selecting idPackage into a variable from...
February 15, 2006 at 9:36 am
Good old Microsoft. They always provide a tick box for any problems you're having. I'm still looking for the tick box in the .Net development environment that tells it to...
February 15, 2006 at 5:04 am
I assume you're talking about .Net. I have no idea why it forces you to create a new connection for each new data adapter created in the visual designer. But...
February 14, 2006 at 6:21 am
Do you mean that when calling @@IDENTITY in the script that inserts into Package in the first place you get idObject?
If so then you need to use Scope_Identity(). This will...
February 14, 2006 at 6:14 am
I might be jumping the gun a bit but I'm pretty sure that you're out of luck. However, if there is such a feature do let me know because I'm...
February 14, 2006 at 5:49 am
Liliana's is a good solution too as long as Ron is sure he's never going to duplicate ID's between the Standard and Custom tables. If he does, then Standard table's...
February 8, 2006 at 5:26 am
Of course the correct answer is, no matter how you actually write the query, to lay it out in a readable way so that the poor bugger who has to...
February 8, 2006 at 5:09 am
Sorry you wanted to join Orders so that would actually be:
select
*
from
vw_Items vi Join Orders od On vi.ItemID = od.ItemID
to return you everything from orders and the other two...
February 8, 2006 at 4:33 am
At first I was thinking maybe a case statement, but now I'm leaning towards using a View e.g.
Create View vw_Items As
Select
*
From
Standard, Custom
Then you can:
select *...
February 8, 2006 at 4:30 am
Viewing 15 posts - 1 through 15 (of 29 total)