Viewing 15 posts - 7,996 through 8,010 (of 8,753 total)
Jeff Moden (6/15/2014)
Eirikur Eiriksson (6/15/2014)
😎
/*Converting INT date and time to datetime */
DECLARE @INT_YYYYMMDD INT...
June 15, 2014 at 1:11 pm
peacesells (6/11/2014)
how can this be done, i tried a couple methods- don't seem to work- any idea?
Forgot to answer the question:-D
It's not possible to programmatically set or concatenate the variables...
June 15, 2014 at 4:42 am
peacesells (6/11/2014)
:setvar FolderPath "\\Here\there\where"
I have two sqlcmd variables that i need to concatenate and store the values in the third variable and use that variable in...
June 15, 2014 at 4:16 am
As an idea for an alternative, here is a window function based solution. Still needs a CTE as window function cannot be directly used as a parameter in another window...
June 15, 2014 at 3:31 am
Could you share some more information such as execution plan, sp_lock and sp_who2 output?
Also check out these two articles
😎
June 15, 2014 at 1:10 am
Didn't see Lynn's code before I wrote the example, almost the same but without a string thingy
😎
/*Converting INT date and time to datetime */
DECLARE @INT_YYYYMMDD INT = 20140704;
DECLARE @INT_HHMMSS ...
June 15, 2014 at 12:43 am
Guessing a little bit here but this is what I think:rolleyes: you are after
😎
; WITH cte AS (
SELECT * FROM (
SELECT 200 CustID, 110 Amt, 1 MM, 'Jan'...
June 14, 2014 at 11:54 pm
cbrammer1219 (6/12/2014)
June 14, 2014 at 3:43 pm
Jeff Moden (6/14/2014)
I'll be back...
:smooooth:
It certainly looks, smells and tastes like a CDR, question is what is the originating system, record type and record format? Many CDR formats are slightly...
June 14, 2014 at 9:21 am
Here is a solution based (loosely) on DelimiterSplit8K.
😎
USE tempdb;
GO
DECLARE @STGTXT TABLE
(
STGTXT_ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED NOT NULL
,STGTXT_TEXT VARCHAR(MAX) ...
June 14, 2014 at 7:15 am
Quick thought on this, I think there is a slight mix-up in the conversation. Using integer in a YYYYMMDD format as a date dimension key in a datamart is not...
June 14, 2014 at 12:21 am
Jeff Moden (6/13/2014)
Eirikur Eiriksson (6/12/2014)
Quick thought, wouldn't it be simpler to have an SSIS package for shuffling the backup files around, no need for XP_CMDSHELL etc.😎
Since you brought it up,...
June 13, 2014 at 11:02 pm
sql_novice_2007 (6/13/2014)
I am not seeing the export option even though I connected to SSMS as an administrator and I have sysadmin privileges.Thanks.
You have to use BIDS or SSDT, not SSMS....
June 13, 2014 at 12:23 pm
Kuzey (6/13/2014)
Luis Cazares (6/13/2014)
Kuzey (6/13/2014)
Hello,You commented the parameters code. If you uncomment it, you need to use @dId instead of @aId on the third parameter for sp_executesql.
When I run this;
EXEC...
June 13, 2014 at 12:19 pm
Kuzey (6/13/2014)
Eirikur Eiriksson (6/13/2014)
Quick question and bear with me hear, but why do you need the cursor, the inner sql has no exec statement?😎
SET @sql='SELECT @aId, @dId, @dStatusId, d.DateCreated, d.DocumentSize,...
June 13, 2014 at 12:17 pm
Viewing 15 posts - 7,996 through 8,010 (of 8,753 total)