Viewing 15 posts - 121 through 135 (of 668 total)
do you have any DDL and sample data you could provide? It's easier to work with real data than to look and say it should work
December 17, 2019 at 7:24 pm
Just a thought, but instead of
IF NOT EXISTS(SELECT * ... or IF EXISTS(SELECT * ... , why not use Top 1? all you need to know is only 1 exists,...
November 14, 2019 at 3:20 pm
Can you provide ddl and sample data. We don't have your tables and data
June 22, 2019 at 11:21 pm
Thanks Matt, but the * doesn't work in some occasions. I have multiple VatRates I'm trying to get and it only returns 1. This should return all 6 Vat records
June 12, 2019 at 5:58 pm
How about the table it is loading into? Triggers, indexes??? Also, what kind of data are you moving? Is it large binary objects, all varchar(max) columns?? how long to do...
February 21, 2019 at 1:29 pm
Is it just a straight BulkInsert command? Format file? Local or over the network? how big is the file? What about the table it is inserting into? Indexes, triggers, etc...??? ...
February 20, 2019 at 1:15 pm
You can always select all that data into a new table and see what the datatypes are. It may clue you in on which column and row
February 13, 2019 at 11:48 am
You can try something like this
(DT_STR,4,1252) datepart("yyyy", getdate()) + Right("0" + (DT_STR,2,1252) datepart("mm", getdate()),2) + Right("0" + (DT_STR,2,1252) datepart("dd", getdate()),2) + "_" + Right("0" + (DT_STR,2,1252) DatePart("hh",getdate()),2) +...
February 11, 2019 at 6:03 am
Is the "YYYYMMDD_MMHH" part hard coded?
February 8, 2019 at 3:16 pm
Looks like duty_saved is an alias in the first select and not the second
(([Chap 99 Rate] + [1_97 Duty_Rate]) * Proto_Value) as DUTY_SAVED
in the...
January 31, 2019 at 11:49 am
Did you setup the 2 tables and try it to see what results you would get?
January 23, 2019 at 11:14 am
I don't know how or what [date] is in your query, but these 2 fail. Can you provide sample date that works
select dateadd(d,getdate()-722815,'1980-1-1')
select dateadd(d,cast(getdate()...
January 22, 2019 at 2:06 pm
Can you post DDL, sample data. You will need to use a dynamic pivot to get what you want
You can use select EOMonth('1/22/2019') to get end of month
January 22, 2019 at 11:03 am
can you provide DDL, sample data and expected results? Otherwise, I would break each part down to make sure it is returning what you are expecting. Sounds like something is...
January 22, 2019 at 9:45 am
Viewing 15 posts - 121 through 135 (of 668 total)