hello , i want to know how to delete some caracter from my table name
for example i have a table named :
dbo.$$2020employee i want to changet it to dbo.employee
i want to do this for all table means that i want to delete $$2020
thankk you
hello , i want to know how to delete some caracter from my table name
for example i have a table named :
dbo.$$2020employee i want to changet it to dbo.employee
i want to do this for all table means that i want to delete $$2020
thankk you
Hi,
Till yesterday, I was able to run a query in couple of seconds. But suddenly today it is taking 20 mins to run.
I have restored yesterday backup and compared execution plan, looks like execution plan didn't changed. Not sure why it is happening.
Can anyone help me in troubleshooting this.
Thanks!
Hello,
I hope all of you are well and safe
I have a SQL JOB with 10 steps (the step #4 is an update for zero or some rows (one column), the step #5 is a SSIS package to export some rows to a CSV). Since last week the step #4 stays running forever and more or less on the same times (8AM & 4PM). I restart the SQL Server Agent, gives an error and start working again until the next time (7:00 or 16:00hrs). I verified if there is a lock and there isn't and checkdb and is all ok. What can be happening? Need some advise because I don't know what else could be the reason. Many thanks in advance.
Kiran
Are there any option in BACKUP DATABASE dbname to disk='path'
that will skip backing up the read-only filegroup ?
hi we are migrating to 2019 enterprise. i am a big fan of rcsi.
im anticipating a debate from my peers that goes like this..."our users do reads only during the window of time that updates to the db aren't occurring. so whats the problem with continuing to use nolock and forgetting about rcsi?"
in such a scenario is it possible to get incorrect data while reading in the window?
I think deadlocks and blocking would still be possible.
I have a table around 8 Million rows and daily night it has a scheduled maintainence plan which takes care of Index & statistics update ( by Index optimize script by ola hallengren) . From past few days slowness is observed for a SP which has this table and if i execute update statistics manually on this table then the SP will run fast.
Note :
There will be around 20K insert/updates on table daily.
The table has only 3 columns with Int data type's and a primary key clustered index on a column.
The instance is hosted on SQL Server 2016 version .
My question : Eventhough running index maintainence and only 20K insert/updates happening daily why updating statistics manually will fix the slowness issue.
SANTHOSH KUMAR
Team,
I try to create SSIS Connection manager via Datatool.
ServerA to ServerB
SSIS Pkg in ServerA & Datasource in ServerB ( 35.185.50.93). sometimes connection Succeeded & sometimes Failled with below error.
when i ping by Port 1433 there is no drop happen.
can anyone please explain why this happen. i thought this one happen because of some N/W issue . but who to identify/prove this.
sometimes Failed (not only this table, even unused backup tables)
some time Succeeded.
But Psping with continuous iteration not show any drops.
Hi All,
I am trying to connect a link server from SQL Server DB to PostgreSQL DB. I have SQL Server 2012 Version.
I have configured ODBC Driver and it is working fine. I tested this using SSIS and I am able to connect to PostgreSQL from my Local Computer and can see tables in SSIS ODBC Source.
But when I try to create a link Server getting error message:
On Prod server Getting error Message:"
Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "POSTGRESQL"."
On UAT Getting Error Message: "Cannot create an instance of OLE DB provider "MSDASQL" for linked server "POSTGRESQL". (Microsoft SQL Server, Error: 7302)"
Please help.
I followed following links: https://www.mssqltips.com/sqlservertip/3662/sql-server-and-postgresql-linked-server-configuration--part-2/
https://www.devart.com/odbc/postgresql/docs/microsoft_sql_server_manager_s.htm
https://www.postgresql.org/ftp/odbc/versions/msi/
https://www.cyberciti.biz/faq/postgresql-remote-access-or-connection/
Thanks Shiven:) If Answer is Helpful, Please Vote
Hi,
I'm getting the following error message when creating a stored procedure that contains a query that references a view that references a temporal table:
Message 13544... Temporal FOR SYSTEM_TIME clause can only be used with system-versioned tables. 'db.schema.table' is not a system-versioned table.
If I run the query outside the scope of the procedure creation, the error does not occur.
The table is for sure a temporal table, and there is usually no problems including a FOR SYSTEM_TIME when querying views that reference temporal tables.
What do I have to do to get around the error?
/Matts
matek994
hi im seeing this from a tool run run by our dba regarding a warehouse upgrade from 2014 to 2019.
Is this just a warning having to do with coding style or a real "showstopper"?
If it is a "showstopper", how will embedded t-sql in pkgs and perhaps reports be impacted?
I believe our dba will be making the new server "2015 compatible".
This rule checks stored procedures, functions, views and triggers for use of ORDER BY clause specifying ordinal column numbers as sort columns. A sort column can be specified as a nonnegative integer representing the position
of the name or alias in the select list, but this is not recommended. An integer cannot be specified when the order_by_expression appears in a ranking function. A sort column can include an expression, but when the database is in SQL 90 compatibility mode
or higher, the expression cannot resolve to a constant.
I had a sql query provided by App Team that was ran 3 days ago which included a mail to be sent using sp_send_dbmail. However, i see that the sessions are still present and unable to kill the session as it still shows "killed/rollback" state.
The SPID's are in MSQL_XP wait type. I digged into it further and found the extended stored procedure "xp_sysmail_format_query" being used. However, since i do not have access to process explorer to be ran on production server, could you please help me in getting these sessions killed. Please note i cannot restart SQL server or agent services as its production server..
Regards Shailesh
Hi,
I am wondering why I do not get an updated SQLCLIXX in my linked server providers folder when installing
https://www.microsoft.com/en-us/download/details.aspx?id=55992
Does MS not release new versions of SQLCLI after version 11 ? If not which drivers should I then use to get updated provides for linkedservers `
Environment is SQL Server 2017. The problem occurs on different installations.
I describe one of the cases that im investigating:
On a Windows Server are 5 SQL Server Instances installed. All 5 SQL Server instances are configured to use SQL Server Filestreams. The Startup of all 5 Services for the SQL Server Instances are configured on "Automatic"
Usually, when the Windows Server is restarted, for example after Servicepack Installation, all 5 SQL Server Instances start without any problem. SQL Server Log Message: "FILESTREAM: connected to kernel driver RsFx0502. This is an informational message. No user action is required." Everything is alright.
But in some cases, after a restart ob the Windows Server, 2 of the SQL Server Instances can initialize the FileStreams. But the other 3 SQL Server Instances fail to initialize the Filestream Features:
Error Message:
FILESTREAM: failed to connect to kernel driver RsFx0502.
<{1038F43D-3391-45F7-B1B3-BADF26459429}>Failed to initialize CFsaShareFilter: Error 0x80070015 (-2147024875)
I can manually restart the 3 SQL Server Instances, and the FileStream Features get initialized.
Just my guess, is there a timing Problem with the Filestream Feature an the SQL Server Instance Start?
Is it possible to configure a dependency on the Service Start of the SQL Server Instance to wait for the Filestream Services?
My other thought was to configure all SQL Server Instance Services to manual and start the SQL Server Services with the Windows Scheduler using a PowerShell script to delay/time the start of the 5 SQL Server instances and their related Services.
Any advice, suggestion or fix for the problem?
Best regards
Paolo
Hi I am following to rebuild the master database using the following link
but I encounter the error
the command I use is setup.exe /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=SQL17INST /SQLSYSADMINACCOUNTS=domain\sql_install
summary txt log
Hi,
I have many jobs which some of them is used from MSX\TSX and the others are local jobs but have not etl job (SSIS). I get some locked process when the some jobs run at the same time and the locked process show that executed command is fromHi, i'm showing the clr warnings from the migration assistant regarding our migration from 2014 to 2019.
can someone explain at a high level what mitigating this entails and why? is it safe to say that at the time the warning was issued the target 2019 "instance" didnt have one or both of the 2 more vulnerable alternatives set? is there an easy way to see what those settings are on the source right now?
basically we have 2 assemblies, 3 if you count one that seems to have no dependencies. clrroutines ->fn_splitstringsclr-> 23 procs. clrutilities->fn_splitlongstringclr->15 procs. microsoft.sqlserver.types->no dependencies.
Assembly '[CLRRoutines]' with PERMISSION_SET = 'Safe' cannot be migrated. For more details, please see: Line 1, Column 1.<p>When CLR Strict Security is enabled, attempting to create an unsigned assembly will cause an error. Use the following steps to create a signed assembly: </p><ol><li>Create a key pair file. For more information, see How to: Create a Public-Private Key Pair.</li><li>Compile the module and sign it using the key file. For more information, see How to: Sign an Assembly with a Strong Name.</li><li>Create an asymmetric key in the master database from the key file CREATE ASYMMETRIC KEY MyStrongNameKey FROM FILE = 'C:\MyStrongNameKey.snk'</li><li>Create a login from the asymmetric key CREATE LOGIN MyStrongNameKeyLogin FROM ASYMMETRIC KEY MyStrongNameKey</li><li>Grant UNSAFE ASSEMBLY permission to the login GRANT UNSAFE ASSEMBLY TO MyStrongNameKeyLogin</li><li>Now users with CREATE ASSEMBLY permissions can create assemblies signed by the key</li></ol> We recommend signing assemblies by following the steps outlined above. However, you can alternatively do one of the following: <ul><li>Set the Trustworthy Property of the database to ON and grant UNSAFE ASSEMBLY permission to the login that owns the database. This is not recommended because marking a database as Trustworthy can allow malicious assemblies to impact resources outside the database. For more information, see Guidelines for using the TRUSTWORTHY database setting in SQL Server. </li><li>Disable CLR Strict Security by using sp_configure. This is not recommended because assemblies marked SAFE or EXTERNAL_ACCESS may enable elevation of privilege from a database user to a sysadmin. sp_configure 'show advanced options', 1 GO sp_configure 'clr strict security', 0 GO RECONFIGURE GO</li></ol></p>
The login has db_datareader role. This works on 15 other databases, but one issues the following error
Msg 7314, Level 16, State 1, Line 16 The OLE DB provider "SQLNCLI11" for linked server "JCI-LN.JCI.ASTEC.LOCAL" does not contain the table ""ln106"."information_schema"."tables"". The table
either does not exist or the current user does not have permissions on that table.
HI Experts,
i wanted to add servers into service account delegation but unable to find while adding server in to account delegation.
Could you please suggest how we can find that.
Thanks & Regards Raghavendra Petla