Viewing 15 posts - 1,246 through 1,260 (of 7,187 total)
"In a format we can consume" means we can just run the code and don't have to fiddle about copying and pasting your data on to our screen. It's you...
September 27, 2017 at 2:28 am
In your Calendar table, you need to number your weeks, not the day of the week. So 2017-09-14 (Wednesday) would be week 20 (say), so would 2017-09-15, so would 2017-09-16, and so...
September 25, 2017 at 9:53 am
Build your expression from the bottom up. Does the inner condition ( ISNULL([DC_ManagerCode] )? "FundCode" : "FundCode_ManagerCode_SHC") work? If so, the error must be in the outer condition. I suspect...
September 25, 2017 at 8:21 am
Create a calendar table with a single day in each row, and a column for the week name or number. You can then join to that table and use the...
September 25, 2017 at 8:17 am
https://docs.microsoft.com/en-us/sql/t-sql/data-types/int-bigint-smallint-and-tinyint-transact-sql
John
September 22, 2017 at 1:42 am
This doesn't make sense. Where does the lc alias in your WHERE clause come from?
John
September 22, 2017 at 1:34 am
Yes. The database engine doesn't read in units smaller than a page. So if you want to see something on a data page, the whole page is read into memory....
September 21, 2017 at 8:48 am
Why not keep it in a separate table? If you have it in the same table, you're going to get page splits the first time any row is updated. You...
September 21, 2017 at 8:16 am
char pads with empty space, yes. That's why you should only use it for short (up to 8 to 10 characters, say) or fixed-length data. But no, it would be...
September 21, 2017 at 7:58 am
Not necessarily, no. It depends whether your column is variable width (varchar(n), for example), and if so what values are in the column (whether they take up the whole maximum...
September 21, 2017 at 7:32 am
The wider your column, the fewer rows you#ll fit on a single data page and hence the more pages are likely to need to be read into memory to satisfy...
September 21, 2017 at 5:55 am
It's dead easy if you've got it in Excel. Add a new column with a sequence number in, then a second new column with a formula something like...
September 21, 2017 at 4:23 am
Why is it important to alter the logins in a particular order? If you really need to, you could try something like this:
SELECT 'ALTER LOGIN '...
September 21, 2017 at 3:53 am
I don't know - I've never used that. But it should be fairly easy for you to test out.
John
September 19, 2017 at 10:09 am
Probably the best reason not to grant the permission is that you want to keep your database design confidential.
John
September 19, 2017 at 9:59 am
Viewing 15 posts - 1,246 through 1,260 (of 7,187 total)