Quantcast
Channel: User sonicbhoc - Database Administrators Stack Exchange
Browsing index pages (7 articles)

Asynchronous database inserts from C# always result in a deadlock

I'm hoping this doesn't come off as too amateurish, but I'm converting a synchronous program to run asynchronously. So far, I've gotten everything running asynchronously except database...

View Article


What's the most efficient way to load a csv file into SQL Server 2016?

Alright, so this question seems simple up-front. Well, there's a bit more to it than just loading the file.The entire story goes like this:For some reason, our client sends us what can only be...

View Article


Answer by sonicbhoc for Join to two tables

You are going to want to select from a JOIN statement. In this case, an INNER JOIN.Try something like this: SELECT i.itemName, i.pricePerUnit, c.itemQuantity FROM Items AS i INNER JOIN ContainsItems ON...

View Article

Comment by sonicbhoc on Asynchronous database inserts from C# always result...

Thank you for mentioning the isolation level! I never changed it and I don't know what the default is, but because you did I did some google searching. I just learned that bulk copy operations block...

View Article

Comment by sonicbhoc on How can I print the contents of a table to the console?

I usually have a debug option in final versions of any of my programs. C# definitely does seem like the better option in my case, but I'm pretty unsure of myself sometimes (especially when I'm doing...

View Article


Comment by sonicbhoc on How can I print the contents of a table to the console?

Nope. I haven't used that tool before. The process needs to be completely hands-off, so I'd prefer something that I can use straight from T-SQL code. I'll look up sqlcmd to see if it will do what I...

View Article

Comment by sonicbhoc on What's the most efficient way to load a csv file into...

Let us continue this discussion in chat.

View Article
Browsing index pages (7 articles)


Latest Images