Viewing 15 posts - 5,866 through 5,880 (of 8,731 total)
You could use the bcp utility through xp_cmdshell.
Check the links for information on those.
September 5, 2014 at 11:17 am
You might want to change your table definition to prevent truncation errors.
CREATE TABLE dbo.TraceResults(
TextData nvarchar(max) NULL,
ApplicationName nvarchar(256) NULL,
NTUserName nvarchar(256) NULL,
LoginName nvarchar(256) NULL,
CPU int NULL,
Reads bigint NULL,
Writes bigint NULL,
Duration bigint NULL,
ClientProcessID...
September 5, 2014 at 10:16 am
terry999 (9/5/2014)
ThanksMy func will look like something like this
Please tell me that you're not creating a scalar function for this. That'll cause performance problems.
September 5, 2014 at 9:50 am
Are you using a format file? How would you handle invalid dates?
A staging table is a good idea for any data load process. That way you don't mess with already...
September 5, 2014 at 9:07 am
Quick thought, but I'm not an SSIS expert.
You could assign the value to your variable through a Script task instead of an expression. That way, you'll keep the same value...
September 4, 2014 at 3:30 pm
batgirl (9/4/2014)
Lynn Pettis (9/4/2014)
I liked the COBOL reference since he likes to...
September 4, 2014 at 2:04 pm
sharonsql2013 (9/4/2014)
All I am trying to do is get a format which is like CURdate in SQL.
Why? You don't need to format a datetime, it's not a string. You can...
September 4, 2014 at 12:39 pm
Why are you converting a datetime (GETDATE()) into a string that will need to be converted again into a datetime data type?
Could you post your table definition with sample data?
September 4, 2014 at 12:07 pm
I wonder if people would be surprised by the error in the following query.
SELECT 1/0 as Result
WITH cte
AS
(
SELECT 'Result' AS Result
)
SELECT *
FROM cte
The reason is...
September 4, 2014 at 9:31 am
Sowbhari (9/4/2014)
I wouldn't recommend using JOIN or APPLY because it could generate duplicates. In this case, I prefer to use IN or EXISTS.
Hi Luis C., could you please explain a...
September 4, 2014 at 9:17 am
jcrawf02 (9/4/2014)
Koen Verbeeck (9/4/2014)
jcrawf02 (9/4/2014)
September 4, 2014 at 9:05 am
CELKO (9/3/2014)
3. A column is a scalar value drawn from a domain.
Can you support this statement with something that is not in your books?
3. Some operations apply to the...
September 4, 2014 at 9:00 am
I'm not sure if YYYY-MM-DD is the only display format, but I wouldn't care less about display formats, that's what the front-end is for. We must care to store values...
September 3, 2014 at 4:32 pm
Koen Verbeeck (9/3/2014)
Bah. I couldn't resist it.
Someone call the Relational Protection Agency, we have an offender...oh, wait. 😀
September 3, 2014 at 1:50 pm
Someone call the normalization police, we have an offender in here.
That Rents table is not normalized. What will happen when there's more concepts needed? Will you just add columns? What...
September 3, 2014 at 1:47 pm
Viewing 15 posts - 5,866 through 5,880 (of 8,731 total)