Hello Support,
My environment consists of Windows Server 2016 and SQL Server 2016, GA releases. Does anyone know what version of Perl and DBI libraries are needed establish a connection to SQL?
Thanks
Joe
SQL 2016 - What version of Perl and DBI software are needed to establish a SQL connection
Leap second to be added end of year 2016
The next leap second will be added on December 31, 2016 at 23:59:60 UTC. There will be a minute that actually contains 61 second.
Could anyone comment whether we will need to take any special action SQL servers to avoid any unexpected behaviour?
Licence Related
Hi,
My org is planning to take volume edition of SQL Server 2016 to deploy on 20+ local servers (on 4 core CPU). Can you please suggest the details of volume licence, process, cost etc...
Thanks
Dhiraj
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Cannot initialize the data source object of OLE DB provider"Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
I have read alot about this error but none of the sluation work for me.
Here is my setup:
Frontend - Windows SBS 2011 - Webserver IIS7
Backend - Windows SBS 2003 - SQL 2005
What im trying to accomplish -
upload excel file and import the data to my sql server.
Code was taking from the following website EXCEL TO SQL code working till the part it suppose to get the data sent to the sql server im able to load the excel file to the upload folder i have on the IIS and able to pick the sheet number the data is on. when trying to submit i get the above error code.
I follow all the instractions to solve the issue but none help. the guy that wrote the code say i have a problem with the driver but i did a fresh install on on my IIS server which did not help at all.
Here is a list of what i did on each server
Web Server II7-
- Install fresh copy of SBS 2011 and reconfig the IIS7 to work .net4 for my web application.
- Microsoft Access database engine 2010 installed.
- give everyone full permission to the NETWORK Services Temp folder
SQL Server -
- Microsoft Access database engine 2010 installed.
- change the SQL Server service to run on local account
- make sure to enable AD Hoc
- Reinstall the Microsoft Access database engine 2010
- Ran the below sql
USE [master] GO EXEC master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1 GO EXEC master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1 GO
I will appreacite any suggestions you might have. Thank you
*** I just found something i think - when i log in using windows auth and run the following
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=z:\test.xlsx', 'SELECT * FROM [Sheet3$]');
I get a the data and no err when i login with my string user i get the err message. so this is a permission issue with sql i wonder what permission i need to give my user to be able to use the OLEDB 12???
RAID 10 for SQL Azure database
Hi,
Just want to know whether we can use RAID 10 for SQL Azure (on Win Azure) database or not?
Thanks
Dhiraj
Plan guide invalid: Column name or number of supplied values does not match table definition.
Hello,
I'm trying to use a plan guide for a given statement because I see a parametric query that eats a lot of CPU for its compilation, the statement needs to be compiled every time because it references a temporary table that is created in the same session: forced parameterization is not a solution in this case.
I thought a plan guide could help.
I've extracted from the cached plans one of the plans generated for this statement (every plan is identical) and I've used the sp_create_plan_guide to bind that plan to the statement, the procedure completed with no errors.
When I try to validate the plan with:
CREATE TABLE #t
(
PROCESSENGINEGUID [NVARCHAR](100)
);
-- Succeeds
SELECT
PG.plan_guide_id,
PG.name,
PG.scope_type_desc,
PG.hints,
FVPG.msgnum,
FVPG.severity,
FVPG.[state],
FVPG.[message]
FROM sys.plan_guides AS PG
CROSS APPLY sys.fn_validate_plan_guide(PG.plan_guide_id) AS FVPG;
DROP TABLE #t;
I receive an error:
Column name or number of supplied values does not match table definition.
I don't know where to look...
deploy to a customer sql server
Hi,
I have developed an SQL stored procedure in Visual Studio Premium 2013 using c sharp. I can deploy it to my test environment SQL Server 2008 no problem and test it there.
Ok, so now I have my {stored procedure}.dll CLR file. How do I 'deploy' it on my customer machine SQL Server?
I copy and paste it to the target machine but then how do I get the target machine to 'connect' with the new DLL? Especially when it is a new install, not an update.
I hope this is a common and simple solution.
Thanks for any advice.
BDM
The databas file and log file of some databases have additional \ in the SQL system databases
Hi,
I am preparing scripts to move the data and log files to different drive. BY running the below query:
select name ASLogicalFileName,physical_nameASFileLocationFROM sys.master_filesWHERE database_id =DB_ID(XXX);
and I get the output as:
XXX | D:\SQLServer\MSSQL11.SQL2012_PRD01\MSSQL\DATA\\XXX.mdf |
XXX_log | D:\SQLServer\MSSQL11.SQL2012_PRD01\MSSQL\DATA\\XXX_0.ldf |
When I checked I cannot find the \ for the file name and the file exists in
D:\SQLServer\MSSQL11.SQL2012_PRD01\MSSQL\DATA\XXX.mdf
D:\SQLServer\MSSQL11.SQL2012_PRD01\MSSQL\DATA\XXX_0.ldf
I am not sure from where the \ appears in the system tables. I get the same output when I run sp_helpdb.
I have verified the path and files they appear to be normal but I get this output for only 2 databases and other databases show correct path.Any ideas please?
Thanks
The query has been canceled because the estimated cost of this query exceeds the configured threshold of 50000
A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 64, output error: 0).
We are using SQL server 2012 and while checking error log we found below errors several times-
A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 64, output error: 0).
Can anyone tell me what this error means? Why it is coming in error log? Is it SQL Server database server problem or client side problem
Chargebacks for SQL queries
I need help. I want to charge people for the SQL resources they use and am unclear on where to start.
What are my options here?
thanks.
Move database objects from default schema to new schema
Hello,
Is is possible to move all database objects (tables, stored procs, scalar functions, etc...) from the default (dbo) schema to a new schema within the same database? One option that was suggested was to generate the DDL and Insert statements and execute them against the target schema. But we have lot of db objects and would be a quite longer task. Is there an easier way to do this?
If yes, could you please point me to a relevant documentation if any?
Thanks,
Niraj
SQL Server on Linux forum (database engine) ?
Hello Everyone
is there a separate forum for asking questions specific to SQL Server on Linux ?
I wanted to know if there is any information/white-paper/document outlining the architectural and internal differences between SQL Server on Windows and SQL Server on Linux?
Also - specifically any Linux Server OS settings/parameters that may need adjusting for best performance and availability ?
thanks!
Yuri Budilov Melbourne Australia
High CPU but low Memory on SQL server.
Hi All,
I am having a performance issue on one of the SQL servers. It was really peaceful. Now the CPU is stuck at 100% and the memory is like around 15% . . . whichi think should be the vise versa.
I checked the INDEXES, rebooted the server multiple times, added more procs and memo (the spec looks like a beast). But still the CPU is at 100%. Its very slow and applications are timing out.
FYI - The SQL server is 2008r2 enterprise.
Please help.
Tina
Linked Server using Windows AD
We have a couple of apps that need access to data that resides in Oracle. Traditionally, we have using linked servers using Oracle credentials to provide data access from SQL to Oracle.
I was wondering if it is possible to use windows AD for linked server credentials. In this case, let's assume userA connects to the database, and userA would need to run some queries against Oracle. In the past userA was able to do it via linked servers however linked server was configured to connect to Oracle using oracle username/password.
Is it possible to configure the linked server to connect to Oracle using Windows authentication while the user is connected to SQL Server as a sql native user. How can this happen? Will I have map the SQL Native account to a Windows AD account that has permissions within Oracle?
Thanks
How to check performance of sql query.
i made some changes in a sql query to optimize it. Now now want to check its performance before and after changes and also check it execution time and resources it hold in execution.
Thanks!
How to delete data from tables in batch wise
Hi All,
I have one requirement, where i need to delete 3 tables’ data in batch wise.
Note: We can’t delete whole data at time, Because there is huge volume of data in tables.
To complete the requirement:
I have created procedure: Where I have used temp table to maintain table names, after that loop the each table get the total records count. Based on that I’m deleting data in batch wise.
Input parameters to procedure:
- Fromdate
- RecordLimit
Based on two parameters it will delete data from tables.
Steps: 1) Get the total number of table based from date
2) Get the number of loops count based on recordcount and recountlimit, needs to run to delete the data.
Table Lists:
- tbl_Emp
EMPID(PK) | EName | HireDate |
- tbl_dept
Dept_ID(PK) | EMPID(FK) | Create Date |
- tbl_deptSummary
Dept_ID(FK) | TotalNoOfEMP’s |
Everything is working fine, My concern is that I don’t want to use temp table to loop the table by table. How to avoid the temp table.
Please your suggestions on this.
Regards,
Vaishu
send email from sql.
Hi experts,
What would be the most simple way of doing this:
-execute a script every 4 hours; and if the script returns any results, send an email with an alert.
99% of the times it would return no results…
Ps: I said “simple”: because I will do it on a server, I will soon give to other team; so I would like to be easy to maintain for the next guy... (using sql 2014).
Failed to initialize sqlcmd library with error number -2147024809
I have searched around but cannot find an answer to this so any help is appreciated. I have a 2014 server with dual instances. When I execute the following query , it succeeds on one instance but fails on the other with the above error. This is not related to SQL Agent, this fails on query execution within SSMS as well (on instance 2, succeeds on instance 1). Names have been changed to generic below. I have tried with/without various options in the call, nothing seems to work on instance 2, but works fine on instance 1. IF I remove the @query parameter, I DO receive the email.
EXEC msdb.dbo.sp_send_dbmail
@profile_name ='Profile1',
@recipients = 'recipientlist',
@subject ='Error in rules-PLEASE INVESTIGATE-',
@body ='There is an error in rules, a rule calls itself. Please fix. The broken rule id is:',
@query='select fields from table WHERE [RuleOnSuccess] = [RuleID] OR [RuleOnFailure] = [RuleID] ',
@attach_query_result_as_file = 0;