Viewing 15 posts - 1,336 through 1,350 (of 3,507 total)
"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
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
Viewing 15 posts - 1,336 through 1,350 (of 3,507 total)