Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Store Procedure - Perm Table

$
0
0
Hi,I'm very new to SQL.I have the following Stored Procedure which works as it should.I would like to move the data / findings into a perm table?The reason for this is so clients can connect to the table using excel. I have another stored procedure which is setup in this process already and it works well. I basically have the stored procedure setup on a task to run early in the morning so when clients get up they connect and get their data.Any help or guides would be very helpful, I have looked and read many guides but most talk about temp tables which doesn't meet my needs.USE [MMAUDIT]GOCREATE PROCEDURE [dbo].[MMA_AUDIT_QUESTIONS_SUMM_STG] ASBEGINSELECT CLIENT_ID ,SITE_ID ,AUDIT_DATE ,QUESTION_NO ,SCORED, REPEATED ,ALERT ,COMMENTS FROM MMA_QUESTION_DATWHERE AUDIT_DATE BETWEEN '2014-07-01' AND '2014-09-28' AND --CHNAGE DATE TO CLIENTS ROUND DATE-- CLIENT_ID = 19 -- CHANGE AS PER CLIENTS ID NUMBER--ENDThank you in advanceJ

Viewing all articles
Browse latest Browse all 3145

Trending Articles