Viewing 15 posts - 7,666 through 7,680 (of 8,760 total)
terry999 (7/31/2014)
ThanksWhere do I put the -c I tried
BULK INSERT tBCP FROM 'C:\temp\tbcp.csv'
WITH (FORMATFILE='C:\temp\fmt.fmt', DATAFILETYPE='char')
It doesn't work
Ooops, my bad, I was thinking in bcp:-P
Should be DATAFILETYPE = 'char'
😎
July 31, 2014 at 5:29 am
Sivaganesh Tamilvendhan (7/31/2014)
while writing store procedure in db
most of Time i will Use common Table to write select quries
for selecting more than seven table whether...
July 31, 2014 at 4:57 am
You might want to add -c (character format) as it looks like it is using native (-n) format.
The 21 -> 50 49 -> 12594 is because it translates the character...
July 31, 2014 at 4:55 am
Quick question, does 7 get translated to 55? Looks like it is reading the character code values as the actual values, change it to SQLCHAR and then convert to int.
😎
July 31, 2014 at 4:02 am
Do you mean something like this?
😎
select * from (
select
[MediaName]
,[Spend]
,[ClientName]
,[BookingYear]
, ROW_NUMBER() OVER(ORDER BY [Spend] DESC) As Row
from(
select
lhe.LHECRELongDesc as [MediaName]
,cast(sum(spo.SPODiscountedCost) as money) as [Spend]
,cli.CLILongDesc AS...
July 31, 2014 at 1:45 am
Quick suggestion, create multiple views on the source server, i.e. vw_source_1_100000000, vw_source_100000001_200000000 etc. where you filter the rows into the right sized chunks.
Then use the import/export thingy to append...
July 30, 2014 at 10:47 pm
Chowdary's (7/30/2014)
Pls find the below
1. What is the output of this query?
A:Enterprise Edition (64-bit),3
2. Can you post the CREATE TABLE script for the table?
A.PFA
3. Is this a production...
July 30, 2014 at 10:37 pm
That is a fair guess as the after trigger execution is appended to the insert statement in the execution plan.
😎
July 30, 2014 at 2:57 pm
Luis Cazares (7/30/2014)
Alvin Ramard (7/30/2014)
WAIT!!!! What kind of database MUST be repaired regularly???? :w00t:The one that is shrinked regularly?
Guess shrinked is the simple mode and shrunken is the...
July 30, 2014 at 2:55 pm
First suggestion is to set NOCOUNT ON to eliminate the unnecessary network traffic.
The message can be from a select / update / insert / delete within the code, even "select...
July 30, 2014 at 2:43 pm
Steve Jones - SSC Editor (7/30/2014)
Lynn Pettis (7/30/2014)
July 30, 2014 at 2:32 pm
Quick suggestion, if you are on SQL 2012 or later, use the concat function.
😎
DECLARE @recordcount INT = 007;
DECLARE @mysubject varchar(500) = CONCAT('Number of unprocessed records on SQL1 ',@recordcount);
SELECT @mysubject;
July 30, 2014 at 2:23 pm
Sean Lange (7/30/2014)
Koen Verbeeck (7/30/2014)
Anyway, if this SO discussion is going to endure any longer, we will reach 45,000 posts real quick 😀
No kidding. I sure opened a can of...
July 30, 2014 at 2:18 pm
Somehow messed up the order of the days, here is the correct code
😎
USE tempdb;
GO
DECLARE @Date DATE;
/*SET @Date = GETDATE();*/
SET @Date = '2014-08-07';
DECLARE @TEST_DATA TABLE
(
DT_ID INT ...
July 30, 2014 at 2:13 pm
Viewing 15 posts - 7,666 through 7,680 (of 8,760 total)