Viewing 15 posts - 2,146 through 2,160 (of 59,082 total)
Just for convenience, here's the formula. Replace the "t.N" with the name of your IDENTITY column that starts at zero.
CONCAT('10.',CHAR(66+t.N/1000),RIGHT(CONCAT('00',t.N%1000),3))EDIT: Forgot to add that it would be...
--Jeff Moden
Change is inevitable... Change for the better is not.
Yes. And, it's easy. Start an IDENTITY column at "0". Add a computed column with the formula from my previous query but replace the "t.N" in both places with the...
--Jeff Moden
Change is inevitable... Change for the better is not.
Too funny. I wish it returned an error instead. One that says, "Dude! Just because this is 2022, you shouldn't expect anything different here!" 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
I guess I don't understand why you think that you need to list every column. If you're trying to export the whole table, then export the whole table.
--Jeff Moden
Change is inevitable... Change for the better is not.
Heh... there's definitely a need for the art. Here are some folks that prove that...
https://samcurry.net/web-hackers-vs-the-auto-industry/
Spooky stuff.
--Jeff Moden
Change is inevitable... Change for the better is not.
And then, there are things like this...
https://www.itprotoday.com/career-development/amazon-slash-more-18000-jobs-escalation-cuts
I know stuff like this happens but this smacks of poor management and "over-hiring" practices.
--Jeff Moden
Change is inevitable... Change for the better is not.
Eddie Wuerch announced on LinkedIn that he got his notification that he'd been laid of from SalesForce when he tried to login. That's definitely NOT the way to do proper...
--Jeff Moden
Change is inevitable... Change for the better is not.
Nor trying to be difficult, but that just lists the values, it doesn't assign them as the table ID in the existing table, as stated in the OP.
Agreed. Do...
--Jeff Moden
Change is inevitable... Change for the better is not.
In order to do what Scott suggests, you'd need to make a SEQUENCE that counts from 1 to 999 and then recycles back to 1. The formula to convert that...
--Jeff Moden
Change is inevitable... Change for the better is not.
Just a tiny simplification of what Jonathan posted and it starts with the "B" series like you wanted...
SELECT TOP 6500
...
--Jeff Moden
Change is inevitable... Change for the better is not.
Aye... thanks for posting the link for that. Much appreciated.
--Jeff Moden
Change is inevitable... Change for the better is not.
@ kirti ,
What do you want it to do when you go to 1 more than 10.Z999 ?
@ kirti ,
If you could answer the question above, I can make...
--Jeff Moden
Change is inevitable... Change for the better is not.
@ kirti ,
What do you want it to do when you go to 1 more than 10.Z999 ?
--Jeff Moden
Change is inevitable... Change for the better is not.
Hi All,
I am doing BCP out the table having 175 columns. For small table columns it works fine.
It errors out for this big column table.
EXECUTE master.dbo.xp_cmdshell 'bcp "SELECT col1...col175...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 15 posts - 2,146 through 2,160 (of 59,082 total)