Viewing 15 posts - 2,476 through 2,490 (of 7,187 total)
Mohit Dhiman (7/8/2016)
You need to have a RowNumber/Rank in your date table that assigns each date with a sequence no.
I would generate it on the fly instead of persisting it...
July 8, 2016 at 7:16 am
Abhas
Assuming that Code is enclosed in double quotes ("CPP") but CIData isn't (n/a), I think your expression needs to look something like this:
Code == "\"CPP\"" && ClData!= "n/a"
John
July 8, 2016 at 5:18 am
Only if the queries that are being run are rubbish enough to include passwords in them. But it comes down to this: they either trust you to do your...
July 8, 2016 at 3:59 am
Not quite. The "sql" is telling the website that it's SQL code so that it can splash it with lots of pretty pinks and blues. No, type where...
July 8, 2016 at 3:55 am
Yes. Have a look at this.
John
July 8, 2016 at 3:50 am
You can either type those tags as you see them, or you can select them from the IFCode Shortcuts section, just to the left of where you type, in the...
July 8, 2016 at 3:42 am
If the admin of the server won't increase your privileges, I think you have no choice but to set up your own instance on which you can do what you...
July 8, 2016 at 3:35 am
It may be your company trying to protect itself against people posting code from its computers. You may find you have to do things like this to get it...
July 8, 2016 at 3:33 am
OK, so import the extensions using SSIS , bcp, BULK IMPORT, OPENROWSET or however else is easiest, as Joe suggested, and then use a query like the one I post...
July 8, 2016 at 2:09 am
Where does that list of phone extensions come from - another table, a spreadsheet, somewhere else?
John
July 7, 2016 at 9:57 am
Why not do it like this?
WHERE MyCol IN (
SELECT MyNumber FROM MyOtherCol
)
John
July 7, 2016 at 9:49 am
T_SQL isn't very good at string manipulation, as you've possibly noticed. The easiest way would be to use a Regular Expressions CLR - you should be able to find...
July 7, 2016 at 9:46 am
Well, yes - if you've managed to move the data, even if you didn't do it in the most efficient way, you can still use it. But you can...
July 7, 2016 at 8:28 am
You're welcome. I didn't realise you were scripting out the INSERTs as well, and I agree with Gail that you should script out just the object creation, and use...
July 7, 2016 at 8:24 am
OK, take the penultimate join predicate and replace it with this:AND CASE -- make sure the end is after the start
WHEN d.PeriodStart > CAST(CAST(d.PeriodStart AS date) as datetime) + v.n...
July 7, 2016 at 7:25 am
Viewing 15 posts - 2,476 through 2,490 (of 7,187 total)