Viewing 15 posts - 8,476 through 8,490 (of 8,753 total)
TJT (4/26/2014)
Department has one or more Employees
Department has one or more Divisions
Divisions have one or more Units
Units have...
April 26, 2014 at 5:46 am
This is a simple version of timezone handling and time adjustments:
😎
USE tempdb;
GO
/*
NOTE: GMT is an obsolete standard, use UTC instead!
000 Dateline Standard Time (GMT-12:00) International Date Line West ...
April 26, 2014 at 5:36 am
Just add a filter to the update statement
😎
DECLARE @child TABLE
(
ID INT NOT NULL
,PID INT NOT NULL
);
INSERT INTO @child(ID,PID)
SELECT CH.ID,CH.PID FROM
(VALUES
(101,10)
,(102,10)
,(103,5 )
,(104,6...
April 26, 2014 at 3:49 am
dastagiri16 (4/26/2014)
and modified my procedure as below.lll
alter procedure limitedupdate(@i nvarchar(max),@j int)
WITH EXECUTE AS OWNER
as
begin
set rowcount @j-2 ;
execute sp_executesql @i
set rowcount...
April 26, 2014 at 3:39 am
J Livingston's solution is the proper way of doing this but for clarification, here is a corrected version of what you where trying to do using dynamic sql.
😎
declare @cmd nvarchar(255)...
April 26, 2014 at 1:56 am
Port1433 (4/26/2014)
Does any one know whether learning about Tableau would help for someone who is trying to break into IT with few course of SQL.
In my opinion, learning the software...
April 26, 2014 at 1:47 am
MVIT (4/26/2014)
But in the procedure before processing the date, I need to convert the date
to...
April 26, 2014 at 1:40 am
Scott Arendt (4/25/2014)
I will agree that it is a personal preference and completely meaningless unless enforced.Also, my personal preference is No_Underscores!!
Do not want to underscore any preferences but I find...
April 25, 2014 at 11:08 am
Luis Cazares (4/25/2014)
More than a simple order by is needed. You need to use CROSS TABS (or pivot if you want to complicate yourself :-P)
I really did miss something (he...
April 25, 2014 at 10:00 am
Unless I missed something, you just have to add an order by clause.:cool:
April 25, 2014 at 9:34 am
Another way of doing this:
😎
SELECT
T1.ID
,DET.AILS.value('Age[1]','INT') AS Age
,DET.AILS.value('Name[1]','NVARCHAR(128)') AS Name
,DET.AILS.value('City[1]','NVARCHAR(128)') AS City
FROM dbo.Table1 T1
OUTER APPLY T1.XML_Uncompressed.nodes('Details') AS DET(AILS)
April 25, 2014 at 8:03 am
Looks more like a wishlist than requirements to me.
😎
April 25, 2014 at 4:02 am
Best bet is to find an ODBC driver for Btrieve (Pervasive SQL), at least that's what the files look like.
😎
April 25, 2014 at 2:17 am
amela.ajanovic90 (4/25/2014)
How do you mean share? The entire thesis will be published by the University, all the responses are of course anonymous. 🙂
Something like posting a link to it here...
April 25, 2014 at 1:19 am
Viewing 15 posts - 8,476 through 8,490 (of 8,753 total)