Hi. I'm Sara Cushman, a reporter for SearchDatabase. We're doing a story about the latest round of SQL server security warnings and patches.
How did you handle the situation? Did you drop everything else and deal with it? How did it compare with other SQL Server problems you have had? Were you able to handle it in a way that you feel left you without any vulnerabilities? If you haven't dealt with it, what are you waiting for?
We're looking for DBAs to share their stories. If you have some, reply here or email me at scushman@techtarget.com so that I can get in touch with you.
The SQL ERRORLOG shows: Error is 3414, Severity 21, State 2 and says: "An error occurred during recovery, preventing the database 'model' (database ID 3) from restarting." Just prior to this, I get a warning: "did not see LP_CKPT_END".
Any thoughts why this might be and how I can fix this?
I have so many warnings in the package which i create and to open a package to takes a very long time..
How do i get rid of the warnings
Warning 2 Validation warning. Tablw1: OLE DB Destination 8 [61186]: Truncation may occur due to inserting data from data flow column "MEMNO" with a length of 255 to database column "MEMNO" with a length of 50. Membership 90-98 Access 2000.dtsx 0 0
In the final oledb dectination of the package i dont connect the error output to error table because they don't have errors
We have a 6 node cluster with 4 SQL Server named instances in the cluster. I am noticing a lot of warnings in the event log with the following information: Event Type: Warning Event Source: SQLBrowser Event Category: None Event ID: 3 Description: The configuration of the AdminConnectionTCP protocol in the SQL instance <instance name> is not valid. The event occurs for all four instances. Additional Information: * OS is Windows 2003 R2 Enterprise x64 Edition w/SP2 * SQL Server 2005 Enterprise Edition w/SP1, hot fix level 2221 * All SQL services runs under the same domain user account
I did some internet searches and found several others who have had this problem. However, I didn't see any solutions. There also seems to be a similar problem with SQL Express but that is not what I am using.
What are the Latest ODBC and SQL Server Drivers for SQL 6.5? How can I upgrade them?
By the way, IS IT ABSOLUTELY NECESSARY to reboot the machine after application of a SQL Server service pack? (There is this dispute going on at my co.)
SELECT D_ID,C_ID,C_HIST_ID FROM @TABLE1 ACH WHERE ACH.C_ID= 71 AND ACH.C_HIST_ID IN (SELECT MAX(ACH1.C_HIST_ID) FROM @TABLE1 ACH1 WHERE ACH1.C_ID = ACH.C_ID AND ACH.D_ID = ACH1.D_ID ) ORDER BY C_HIST_ID
I have sql server 2005 - version 9.00.3054.00 -SP2 - Enterprise Edition. Is there any latest version than this to upgrade. I am having lot of troubles on the server these days. Whenever Analysis server cube is processed, the server is going really slow and before the cube process analysis service is stopping. I don't understand what the problem is? Analysis services is getting stopped whenever a cube is processed and server performance is getting really slower. Please let me know how to trouble shoot this.
I've had troubles in the past with this bug - http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=158671&SiteID=1 - where 'join's with 'order by' did not work correctly. So is there a new version where I don't need a workaround and if yes, where is this version available? The latest version I know of is 3.0.5214.0, but in the meanwhile SQL Server 2005 SP1 had been released so I did remember that there is this open bug in SQL Server Mobile.
Anyone know how to capture SQL Warnings so I can write them to an error log? I can't seem to find any info on it in Books Online...
I can capture the errors just fine by using @@ERROR after a select, but what about warnings such as "Warning: Null value is eliminated by an aggregate or other SET operation."
While executing the following code,it is showing some warnings.
SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO SET ANSI_WARNINGS ON GO Drop procedure [DBO].[Usp_Extract_OLAP_Data_1] GO
Create Procedure [DBO].[Usp_Extract_OLAP_Data_1] as
begin
IF EXISTS (SELECT * FROM DBO.SYSOBJECTS WHERE ID = OBJECT_ID('[DBO].[processed_olap_data_1]') AND OBJECTPROPERTY(ID, N'ISUSERTABLE') = 1) DROP TABLE [DBO].[processed_olap_data_1] select * into dbo.processed_olap_data_1 from pubs.dbo.processed_olap_data_1 EXEC ('ALTER TABLE dbo.processed_olap_data_1 ADD generatedid INT IDENTITY')
select * from processed_olap_data_1 order by generatedid
END
GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO SET ANSI_WARNINGS OFF GO
Out Put is as follows ----------------------
(141 row(s) affected)
(141 row(s) affected)
Warning: The table 'processed_olap_data_1' has been created but its maximum row size (3873071) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.
(141 row(s) affected)
Please guide me on this issue that why iam getting this warning even i set the ansi null and ansi warnings off. one more thing is that is there any other way to add an identity column with out using alter statement.and is there any problem with front end guys if it shows like this warnings..."
Hi! guys,I have a SQL agent job fails because it gets 10 warnings when it runsa stored procedure. These warnings are trivial and can be ignored. CanI make it ignore these warnings and proceed? I think there is somesetting I can do to change the default behavour of an agent jobregarding warnings but I just don't know how to do it.Any idea?Thanks,Gary
I would like to get a list of all the unused columns, I have tons of files and fields in the package probably in the hundreds and I need to know which fields I am not using to see which fields are important not to miss out, so is there any way I can get them in a text file or any other format?
I am creating a 2005 SSIS Package with multiple data flows with source data based on the XML Source and a XSD Schema that we have created. These data flows load data from XML into different tables in our data warehouse for order data so the XSD Schema has several hierarchies. Because each data flow loads data into one table (I broke it out this way to make the package easier for readability and maintance) and the source for each is based on the XSD hierarchies I receive numerous warnings similar to the following; "Warning: 0x80047076....Removing this unused output column can increase Data Flow task performance." that I would like to remove. However, when I un-check the box to remove those output columns (which leaves several hierarchies without output columns) I then receive a error similar to the following; "Error: 0xC00470B9 at ....contains no output columns. An asynchronous output must contain output columns."
So the question is how to remove the numerous remove column warnings? I have thought about creating one XML schema for each dataflow, breaking the data flows into different packages, etc. but I am still not exaclty sure how to remove the warnings which should increase the speed of the package overall. Thank you!
I need to copy the last differential backup file from the production server directory to a data warehouse server directory. There are 3 differential backup files on the directory and I need to grab the latest one. I have the following syntax which work from a batch file but it does not work when I put it into a job step as a cmd even though I remove the double %% to only one %.
echo @off set path1="192.29.305.213$SqlserverProductionBa ckupsKBR_PROD" set path2=K:SqlserverDatawarehouseBackupPROD for /f "tokens=*" %%a in ('dir /b /a-d /o-d "%path1%DIFF*.bak"') do copy "%path1%\%%~a" "%path2%" & goto nextstep :nextstep Echo File Copied.
Even when I change it to (only one % for the variable),
for /f "tokens=*" %a in ('dir /b /a-d /o-d "%path1%DIFF*.bak"') do copy "%path1%\%~a" "%path2%"
It does not work..........It runs successfully but no file is copied or I get
Message Executed as user: PROD23Sqladm024. The process could not be created for step 1 of job 0xEAAF943771FF304A9E7AD8ADAC24F96C (reason: The system cannot find the file specified). The step failed.
I know that the file is there. It works with batch file. Poweshell script can be OK. No SSIS - Not installed
I'm trying to find the most succinct way to get the last occurrence of April 1st given a date.
At the moment I'm using this:
DECLARE @Date DATE = '20131217' SELECT CONVERT(DATE, CAST(DATEPART(YEAR, IIF( --If we're at the start of a year --we'll need to go back a year DATEPART(MONTH, @Date) IN (1,2,3), DATEADD(YEAR, - 1, @Date), @Date )) AS VARCHAR(4)) + '0401')
I'm trying to write some SQL which will give me the following result from the table below..
Currently I can do each of the PRICEx fields in a seperate query then join the results together. I do this by getting the MAX(Date) WHERE PRICEx IS NOT NULL then using that date to get PRICEx, and then repeat until I've done all the PRICE fields.
This is acceptable for a small selection, but for a large selection this can get quite slow. I was just wondering if there is there a way to do this in one single SQL without having to join the table to itself 3 times (for all 3 PRICE fields)
I was just going through the default trace files and see full of sort warnings, missing join predicates and hash warnings. The server behaved weirdly last night with queries longer than usual time and the server started choking. I didn't find any info from error logs or event viewer.
Hi, I am trying to import from Excel file. So In between Excel file source and OLEDB destination I am using One Data Transformations to convert excel unicode characters to Sqlserver varchar.
Iam getting this following errors: 1)
Error: 0xC020901C at Data Flow Task, OLE DB Destination [382]: There was an error with input column "Copy of Zip" (615) on input "OLE DB Destination Input" (395). The column status returned was: "The value could not be converted because of a potential loss of data.".
Copy of zip is the Data Transformation column mapped Sqlserver Varcahr(200) column of Zipcode. In excel file the Zip codes are like this: 78712-2344 78123 12345 87651-1234
2)
The column "State" needs to be updated in the external metadata column collection. This is warning. This type of warnings are for all columns in excel file.
3) Intially I declared the Sqlserver table columns like this Varchar(100), then SSIS showing some warning like truncation of column State 255 characters to .. So I changed columns datatype from Varchar(100) to Varchar(500)? Why we need to change like this.
I am getting unusable warnings from dataflow task while running. Say for example I am getting column A, B, C from source and I am using only column C in destination. Whenever I run the package, I am getting a warning saying that
"The output column "A" (67) on output "Output0" (5) and component "Data Flow Task" (1) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance."
Can any one help me how to resolve these warnings?
Is there a way of stopping truncation warnings due to the fact the the XL driver assumings BSTR(255) columns. I'm loading data from excel to SQL Server, the SQL Server columns are nvarchar(50) but the Excel source has assumed 255.
I can change the Excel Source using the 'Advanced Editor' and change the meta-data of the 'Output Column', but then there's a mismatch between the External Column and Output Column collection - so a warning is displayed.
The External Column meta-data can be changed, but then it's out of sync with the 'Error Output' meta-data (and the Error Output meta-data is read only).
I'm sure I've missed a step, can anyone enlighten me
Hi, I have a custom component that compiles just fine on one environment. I copied and pasted the code to another environment and now I'm getting compilation warnings:
Warning 1 CA1014 : Microsoft.Design : '*******.Seer.Ssis.Common' should be marked with CLSCompliantAttribute and its value should be true. *******.Seer.Ssis.Common
Warning 2 CA1705 : Microsoft.Naming : Correct the capitalization of type name 'PPDMDataLineageComponent'. C:PROJECTSSeerCode*******.Seer.Ssis.CommonPPDMDataLineageComponent.cs 13 Chevron.Seer.Ssis.Common
I have a select query that results all the dbs and their several backup dates×. Howover I only need the latest backup dates for each of the db.How can I write that in tsql?
I want to fetch below 3 records from the above scenario i.e. latest record of each amount (Latest is determined using "descr" column i.e. 4 is greater then 3 -
I'm trying find a way of crating an sql server job which would restore only transactional log file just once a day. The trouble I'm having is trying to get only the latest transactional log file it it possible to achieve through e.g powershell etc as I can't find a way through sql query?
The following SQL query :-SELECT CardHolder.RecordID, History.GenTime, History.Link1FROM History FULL OUTER JOINCard ON History.Param3 =LTRIM(RTRIM(Card.CardNumber)) FULL OUTER JOINCardHolder ON Card.CardHolderID =CardHolder.RecordIDWHERE (Card.Deleted = 0) AND (History.GenTime IS NOT NULL)ORDER BY CardHolder.RecordID, History.GenTime DESCreturns :-RecordID GenTime Link12 04/06/2004 15:30:00 1232 01/06/2004 16:00:00 1232 01/06/2004 08:00:00 1101155 02/06/2004 11:30:00 1231155 02/06/2004 08:00:00 1103925 03/06/2004 09:00:00 1233925 03/06/2004 08:00:00 1104511 06/06/2004 11:30:00 1234511 06/06/2004 10:30:00 110Is there a way of modifying this query to just return the lastestgenTime for each RecordID ??? ie return just rows 1,4,6 & 8.I assume it is something to do with MAX, but I can't seem to get myhead around it.Any help, or pointers would be appreciated.Oh, running query on Microsoft SQL Server 2000.RegardsDave
I'm a student at Boise State university and we're using SQL Express as part of one of our projects for ASP.NET programming. I liked it and I'm trying to use it to power a wiki that I'll be hosting from my home internet connection. The wiki is compatible with MSSQL server, but it won't connect to SQL Express.
I suspect that the problem is in the connection string, mainly because the apps we're developing for class use a connection string like: <add name="AspNetForumConnectionString" connectionString="Data Source=localhostsqlexpress;Initial Catalog=gaming.forum.nxnw;User ID=*********;Password=*********;" providerName="System.Data.SqlClient"/>
and note the Data Source. The wiki I'm using is PHP based and uses ADObd to connect databases and has a driver for MSSQL, but not SQL Express (no surprise, really). I know just enough php to be dangerous to code and I've tried modifying the adodb-mssql.inc.php, but I can't seem to make the right change.
So, all that said, my question is: Is there a way to change what SQL Express 2005 will accept as a connection string? I've been looking, but I'm not even sure what the setting would be called.
When running a stored procedure, how can i retrieve the warnings that are issued within the stored procedure?
the code used is below,
the jdbc is connecting fine, it is running the stored procedure, but when an error is raised in the stored procedure, it is not coming back into s.getwarnings() warning raised in stored proc with
Code Block
RAISERROR ('Error', 16, 1)with nowait;
there are no results for the stored procedure, I am just wanting to get the warnings
}the code is not complete, but should show what is happening
it is continually outputting null for the warning, though the strored proc is definately raising errors, which is proven by running it in a query window in sql server.
it is retreiving warning if the statement is a raiseerror instead of a call to the proc
Code Block
CallableStatement s = con.prepareCall("RAISERROR ('Error', 1, 1)with nowait;");
this thread is quite related, but doesnt offer a working solution Getting messages sent while JDBC Driver calls stored procedure