Viewing 15 posts - 1,306 through 1,320 (of 3,480 total)
Do the databases have exactly the same tables and records?
March 11, 2018 at 9:49 pm
Oh, now I get it! (One day, I swear I'm gonna learn how to read!)
Basically, you need two things to do this - a ForEach File Loop, and an...
March 8, 2018 at 9:29 pm
March 8, 2018 at 6:13 pm
"automated unmanned job" - the "processing database" would have an autoexec macro in it that kicks off the processing of the databases in some folder (uses DIR() to loop over...
March 8, 2018 at 11:22 am
"I can't use CHOOSE"? What kind of requirement is that?
You have to do it in SSRS, because you said you can't modify the underlying query. How do they suggest...
March 5, 2018 at 11:40 am
Are you allowed to create calculated fields in your report definition?=CHOOSE(Fields!GradeLevel.Value,"Pre K","K","1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th", "10th", "11th", "12th")
(You could alter it to include different messages for each...
March 5, 2018 at 1:02 am
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
Viewing 15 posts - 1,306 through 1,320 (of 3,480 total)