Viewing 15 posts - 1,321 through 1,335 (of 3,489 total)
The reason I asked about Access is that I don't know how to dynamically select which columns are getting imported/mapped to which destination columns in SQL Server. I have done...
March 4, 2018 at 5:30 pm
You can do this in Access too... Open a front end (no data, just linked tables, and some code). Then loop through the table(s) and deal with them. Append to...
March 3, 2018 at 5:59 pm
Thanks for posting the INSERT scripts. But without a corresponding CREATE TABLE script, the data has nowhere to go.
February 27, 2018 at 10:59 am
That's a huge question... Are you looking for a book on SQL Server Administration or T-SQL?
February 27, 2018 at 10:53 am
I tried to reproduce your problem by using DECLARE inside the query window in PowerBI (after you specify the database etc), and mine worked. Granted, my SQL was a lot...
February 27, 2018 at 10:26 am
I am curious about how SQL works after purging data file . Per my...
February 22, 2018 at 6:28 pm
Yes, you're right. I would absolutely do this as a stored procedure. If you post the CREATE TABLE and INSERT scripts for your Agents and ActiveCalls tables (maybe 2 records...
February 21, 2018 at 12:12 am
Joe,
Here's my really small test setup:USE TempDB;
GO
CREATE TABLE Agent(
AgentID INT IDENTITY,
FirstName VARCHAR(15) NOT NULL,
LastName VARCHAR(20) NOT NULL
CONSTRAINT Agent_PK PRIMARY...
February 20, 2018 at 2:22 pm
You can capture the ID of the person with the fewest calls, and then use it in another query:DECLARE @AgentID INT;
SELECT TOP 1
@NextAgentID =...
February 20, 2018 at 2:16 pm
Okay, I'm not a DBA, so take this with a grain of salt.
What if you had a table that held the size of the log over the course of...
February 18, 2018 at 2:36 pm
Yeah, I figured that out after taking a break for a while... (That's my crummy code he was posting about.)
Took me a minute to figure out I could use...
February 18, 2018 at 2:24 pm
Why not just use a the 3-part naming convention when creating your view?
USE Tempdb;
GO
CREATE VIEW MyView
AS
SELECT CustomerID
FROM Galactic.dbo.Customer;
I'm creating...
February 17, 2018 at 1:31 pm
Thanks for the data, and expected results - it helped a lot. I fixed it up and created the scripts to populate your table - (since you're new, you get...
February 17, 2018 at 12:50 am
This would be infinitely easier if you normalized your table structure first. Repeating groups is the first thing you remove when normalizing a table.
February 14, 2018 at 12:10 pm
Can't you take my union query (or similar) as the source, and then use COUNT() as the aggregate at the intersection? Something like A would be on Columns, C would...
February 12, 2018 at 2:57 pm
Viewing 15 posts - 1,321 through 1,335 (of 3,489 total)