Viewing 15 posts - 3,631 through 3,645 (of 13,462 total)
well based on how i read your description, it sounds like a simple calcuated column could be used;
ALTER TABLE [dbo].[GV_STNDetails]ADD STN AS RIGHT('0000' + CONVERT(VARCHAR,[From_StoreCode]),4) +RIGHT('000000' + CONVERT(VARCHAR,[STNID]),6) PERSISTED
if you...
April 17, 2013 at 5:24 am
did you test this script yourself yet?
does it run?
does it raise errors?
April 16, 2013 at 1:54 pm
ray is this for a web page or for a winform?
for Winforms, i usually create a binding source,
set the binding source.Datasource to your datatable, and finally set the the .Datasource...
April 16, 2013 at 12:48 pm
dbursey (4/16/2013)
Should I delete the existing linked server before running the system sp's?Thank you for your reply -
Donna
what i posted was a proof of concept; if you need to add...
April 16, 2013 at 12:36 pm
you took a picture in pointing at a mirror obviously.
that's why the steering wheel looks funny 😛
April 16, 2013 at 12:24 pm
consumable sample data: note there are gaps(no "WednesDay" data for example), so a calendar table or case will be needed to get the values:
With MySampleData(CCDATA,CCDATAcompletedTIme)
AS
(
SELECT 54,'2013-04-16 13:56:00' UNION ALL
SELECT 52,'2013-04-16...
April 16, 2013 at 12:17 pm
As far as i know, only ONE catalog will ever appear for a SQL server linked server...and that is the list of objects in the database the linked server points...
April 16, 2013 at 12:10 pm
unlike all of you guys who completed all their tax paperwork in January and already got your refunds back, my yesterday was
non stop juggling of funds so I could write...
April 16, 2013 at 12:01 pm
something like this is what i have saved in my snippets,a nd modified for your question:
SELECT * FROM
(
select name as DBNAME,STATUS,
CASE WHEN (STATUS & ...
April 16, 2013 at 8:14 am
it means that if you start a BEGIN TRAN,
if ANY error occurs in the transaction, instead of moving on to the next statement and continuing to process(the default...
April 16, 2013 at 8:03 am
Sean Lange (4/16/2013)
Lowell (4/16/2013)
Sean Lange (4/16/2013)
jimoa312 (4/16/2013)
...Run this ONLY ON A DEV/TEST server!!!!
One last thing...did I mention that you should not run this in...
April 16, 2013 at 8:00 am
Sean Lange (4/16/2013)
jimoa312 (4/16/2013)
... DO NOT RUN THIS IN PRODUCTION!!!!!!!...Run this ONLY ON A DEV/TEST server!!!!
One last thing...did I mention that you should not run this in production???
Happy hunting!!!
you should...
April 16, 2013 at 7:44 am
really?
to me, the WHERE just does not look right:
I see two huge issues:
first, each EXISTS seem to reference THREE tables, and there's no joins...i don't even think it should work:
WHERE...
April 16, 2013 at 7:38 am
Minnu (4/16/2013)
Below is the query am using..
create or replace trigger tr_stud
after insert or update or delete
of stud_code , name
on stud
referencing old as old new as new
for each row
begin
...
April 16, 2013 at 7:24 am
it's been a long time since you followed up on this, and you've changed which tables you are referring to.
did you fix the issue on MODEL_CODE and now have the...
April 16, 2013 at 5:17 am
Viewing 15 posts - 3,631 through 3,645 (of 13,462 total)