Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

Moving files to a different drive

$
0
0

Hi All,

I have SSISDB  (ldf and mdf) files on my C drive and there is not enough space. Can someone please help me or  point me to a document as how to change the location to a different drive without bringing down the services.

Please need help.

Thanks


Table query failing with code 0xC0000005

$
0
0

Only fails with this one particular table. Getting the following report:

Feedback Type:
Frown (Error)

Error Message:
Container exited unexpectedly with code 0xC0000005.
Used features: Odbc.DataSource/W3ODBCCI.DLL/10.31.0040 000/Pervasive.SQL/10.31.0040 000.

Stack Trace:
Microsoft.Mashup.Evaluator.Interface.ErrorException: Container exited unexpectedly with code 0xC0000005.
Used features: Odbc.DataSource/W3ODBCCI.DLL/10.31.0040 000/Pervasive.SQL/10.31.0040 000. ---> Microsoft.Mashup.Evaluator.Interface.ErrorException: Container exited unexpectedly with code 0xC0000005.
   at Microsoft.Mashup.Evaluator.ErrorTranslatingMessenger.MessageChannel.Read()
   at Microsoft.Mashup.Evaluator.ErrorTranslatingMessenger.MessageChannel.Read()
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.ErrorTranslatingMessenger.MessageChannel.Read()
   at Microsoft.Mashup.Evaluator.ChannelMessenger.Read(MessageChannel channel)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.MessageChannel.Read()
   at Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel)
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.WaitFor(Func`1 condition, Boolean disposing)
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.NotifyingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.NotifyingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.NotifyingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.NotifyingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Evaluator.Interface.NotifyingPreviewValueSource.get_SmallValue()
   at Microsoft.Mashup.Host.Document.Analysis.PackageDocumentAnalysisInfo.PackagePartitionAnalysisInfo.SetPreviewValue(EvaluationResult2`1 result, Func`1 getStaleSince, Func`1 getSampled)

Stack Trace Message:
Container exited unexpectedly with code 0xC0000005.
Used features: Odbc.DataSource/W3ODBCCI.DLL/10.31.0040 000/Pervasive.SQL/10.31.0040 000.

Invocation Stack Trace:
   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
   at Microsoft.Mashup.Client.UI.Shared.FeedbackErrorInfo..ctor(String message, Exception exception, Nullable`1 stackTraceInfo, String messageDetail)
   at Microsoft.Mashup.Client.Excel.Native.NativeUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass14_0.<HandleException>b__0()
   at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.SendAndMarshalExceptions(SynchronizationContext context, Action callback)
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialogBase`1.DelayedInitializationExceptionHandler.HandleException(Exception e)
   at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.<>c__DisplayClass78_0.<OnAjaxException>b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass3_0.<Post>b__0(Object null)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ThreadContext.LocalModalMessageLoop(Form form)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.RunDialog(Form form)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Microsoft.Mashup.Client.UI.Windows.DialogWindowBase.ShowModal(IWindowHandle windowHandle)
   at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.<>n__0(IWindowHandle owner)
   at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.<>c__DisplayClass57_0.<ShowModal>b__0()
   at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
   at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.ShowModal(IWindowHandle owner)
   at Microsoft.Mashup.Client.UI.Shared.Ux.FloatingDialog.NavigatorFloatingDialog.ShowEditLoadTo(IWindowHandle owner, IUIHost uiHost, Query query, ITelemetryService telemetryService, ITeachingCalloutManager teachingCalloutManager)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass60_0.<ShowNavigator>b__0(IWorkbook workbook)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass55_1.<NotifyGetDataPresence>b__1()
   at Microsoft.Mashup.Client.Excel.Shim.NativeCoAuthServices.NotifyGetDataPresence(IWorkbook workbook, Action action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass55_0.<NotifyGetDataPresence>b__0(IWorkbook workbook)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass56_0.<InvokeOnWorkbook>b__0(IWorkbook workbook, IWindowContext windowContext)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.InvokeOnWorkbook[T](Func`3 action, T defaultValue)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.InvokeOnWorkbook(Action`1 action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.NotifyGetDataPresence(Action`1 action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.ShowNavigator(Query query)
   at Microsoft.Mashup.Client.UI.Shared.DataImporter.ShowNavigatorOnSourceQuery(Query query, IEnumerable`1& importedQueries)
   at Microsoft.Mashup.Client.UI.Shared.DataImporter.ImportNavigationSource(Query query)
   at Microsoft.Mashup.Client.UI.Shared.DataImporter.OnGetPreviewResult(PreviewResult preview, Query query, String sourceID, String formulaTitle, Nullable`1 explicitImportDestination, Boolean isNewQuery, Boolean isFromEditor)
   at Microsoft.Mashup.Client.UI.Shared.DataImporter.GetPreviewResult(Query query, String sourceID, String formulaTitle, Boolean isNewQuery, Boolean isFromEditor, Nullable`1 explicitImportDestination)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass62_0.<GetPreviewResult>b__1()
   at Microsoft.Mashup.Client.Excel.Shim.NativeWorkbookStorageServices.Microsoft.Mashup.Client.Excel.Shim.IDeferredStorageInvoker.InvokeDeferredStorageAction(IWorkbook workbook, Action action)
   at Microsoft.Mashup.Client.Excel.Shim.NativeCoAuthServices.InvokeCoauthAction(IWorkbook workbook, UndoableActionType actionType, Action action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass62_0.<GetPreviewResult>b__0(IWorkbook workbook)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass55_1.<NotifyGetDataPresence>b__1()
   at Microsoft.Mashup.Client.Excel.Shim.NativeCoAuthServices.NotifyGetDataPresence(IWorkbook workbook, Action action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass55_0.<NotifyGetDataPresence>b__0(IWorkbook workbook)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.<>c__DisplayClass56_0.<InvokeOnWorkbook>b__0(IWorkbook workbook, IWindowContext windowContext)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.InvokeOnWorkbook[T](Func`3 action, T defaultValue)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.InvokeOnWorkbook(Action`1 action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.NotifyGetDataPresence(Action`1 action)
   at Microsoft.Mashup.Client.Excel.ExcelDataImporter.GetPreviewResult(Query query, String sourceID, String formulaTitle, Boolean isNewQuery, Boolean isFromEditor, Nullable`1 explicitImportDestination)
   at Microsoft.Mashup.Client.UI.Shared.DataImporter.<>c__DisplayClass75_1.<OnQuerySettingsResolved>b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass3_0.<Post>b__0(Object null)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Supports Premium Content:
False

Formulas:


section Section1;

shared #"NavigatorBase_1ac78348-5d5c-4a30-913a-8ca13f422271" = let
    Source = Odbc.DataSource("dsn=HOTSY_ODBC", [HierarchicalNavigation=true])
in
    Source;

older ODBC driver needed

$
0
0

I'm working with a vendor application that is certified on Windows 2016 + MSSQL 2016 but requires a specific, older ODBC driver.  I've googled around and can't seem to find a copy of it.  The required version is 2015.130.1601.05.  Can someone point me to an archive? 

FWIW, I'm pressuring the vendor to test and fix their app such that it can use the latest greatest drivers but, in the meantime I'm stuck.

Thanks!

OLE DB Provider for DB2 6.0 on SQL 2012 Standard

$
0
0


OLE DB provider 'DB2OLEDB' for linked server 'linkedserver' returned data that does not match expected data length for column '[DB2OLEDB].00001'. The (maximum) expected data length is 40, while the returned data length is 41.

After some digging I found

https://support.microsoft.com/en-gb/help/2993741/process-binary-as-character-true-no-longer-returns-binary-data-as-stri

any solution for  DB2 6.0?



How to get the real table names from dataset when use DataAdapter to exec a store procedure?

$
0
0

I have a SP which return several tables:

CREATEPROCEDURE [dbo].[USP_ExternalInterface_PersonalInfo_Select]--@Id nvarchar(19)ASBEGINSELECT * FROM Career --WHERE Id=@IdSELECT * FROM Education --WHERE Id=@Id--...END

 And my C# code like below:

string connectionString = "server=.;database=ActivateCMBC;Integrated Security=true;Max Pool Size=100;Min Pool Size=10";string commandText = "EXEC USP_ExternalInterface_PersonalInfo_Select";
      SqlDataAdapter adp=new SqlDataAdapter(commandText,connectionString);
      DataSet ds=new DataSet();

      adp.FillSchema(ds, SchemaType.Source);
      adp.Fill(ds);

      foreach (DataTable dt in ds.Tables)
      {
        Console.WriteLine(dt.TableName);
      }

I want get real table names such as (Career, Education), but not (Table, Table1)

I hope I´ve made a good explication and you can help me. Thanks

connect retry count and connect retry interval in SQL connection string

$
0
0

Hi

In ODBC connection config form there is a way to set a connect retry count and a connect retry interval, we are wondering if there is a way to implement a connection retry in .net/sql connection string without changing the code of the application and implement a system retry manually? Seems those two properties are missing from the connection string and from the .net connection builder class!

Best regards


Mohamed B.

Is TLS 1.3 support available for SQL Server?

$
0
0

Hi,

I was searching through TLS 1.3 in internet, i didn't find any concrete answers

Q1: Is TLS 1.3 support is available or still in R&D

Q2: If available how to enable it.

Q3: What are the supported SQL Drivers and SQL Server versions?

Regards,

M, Kalidoss

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

$
0
0

Hi Expert,

Need your solution, I am using Sage 500 ERP and the below issue is from client PC.

in the server, the system works fine, but when I am trying to access from client PC I am getting the below error.

I have checked the client ODBC connection and configured but still the same error.

[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.”


Afzalkhan


error while connecting to MS SQL server

$
0
0

Hi,

I am connecting to MS SQL server and doing small changes to the table and closing the connection from a java program.

I am calling this java program in a for loop in a shell script on linux.

However, it fails randomly during iteration. It may fail at 1st iteration, 4th, 5th or after any random number of iterations with the below error :

-------------------------------------------------------------------------

Aug 26, 2016 5:14:40 PM com.microsoft.sqlserver.jdbc.TDSChannel enableSSL
INFO: java.security path: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/jre/lib/security
Security providers: [SUN version 1.7, SunRsaSign version 1.7, SunJSSE version 1.7, SunJCE version 1.7, SunJGSS version 1.7, SunSASL version 1.7, XMLDSig version 1.0, SunPCSC version 1.7]
SSLContext provider info: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
SSLContext provider services:
[SunJSSE: KeyFactory.RSA -> sun.security.rsa.RSAKeyFactory
  aliases: [1.2.840.113549.1.1, OID.1.2.840.113549.1.1]
, SunJSSE: KeyPairGenerator.RSA -> sun.security.rsa.RSAKeyPairGenerator
  aliases: [1.2.840.113549.1.1, OID.1.2.840.113549.1.1]
, SunJSSE: Signature.MD2withRSA -> sun.security.rsa.RSASignature$MD2withRSA
  aliases: [1.2.840.113549.1.1.2, OID.1.2.840.113549.1.1.2]
, SunJSSE: Signature.MD5withRSA -> sun.security.rsa.RSASignature$MD5withRSA
  aliases: [1.2.840.113549.1.1.4, OID.1.2.840.113549.1.1.4]
, SunJSSE: Signature.SHA1withRSA -> sun.security.rsa.RSASignature$SHA1withRSA
  aliases: [1.2.840.113549.1.1.5, OID.1.2.840.113549.1.1.5, 1.3.14.3.2.29, OID.1.3.14.3.2.29]
, SunJSSE: Signature.MD5andSHA1withRSA -> sun.security.ssl.RSASignature
, SunJSSE: KeyManagerFactory.SunX509 -> sun.security.ssl.KeyManagerFactoryImpl$SunX509
, SunJSSE: KeyManagerFactory.NewSunX509 -> sun.security.ssl.KeyManagerFactoryImpl$X509
  aliases: [PKIX]
, SunJSSE: TrustManagerFactory.SunX509 -> sun.security.ssl.TrustManagerFactoryImpl$SimpleFactory
, SunJSSE: TrustManagerFactory.PKIX -> sun.security.ssl.TrustManagerFactoryImpl$PKIXFactory
  aliases: [SunPKIX, X509, X.509]
, SunJSSE: SSLContext.TLSv1 -> sun.security.ssl.SSLContextImpl$TLS10Context
  aliases: [TLS, SSL, SSLv3]
, SunJSSE: SSLContext.TLSv1.1 -> sun.security.ssl.SSLContextImpl$TLS11Context
, SunJSSE: SSLContext.TLSv1.2 -> sun.security.ssl.SSLContextImpl$TLS12Context
, SunJSSE: SSLContext.Default -> sun.security.ssl.SSLContextImpl$DefaultSSLContext
, SunJSSE: KeyStore.PKCS12 -> sun.security.pkcs12.PKCS12KeyStore
]
java.ext.dirs: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/jre/lib/ext:/usr/java/packages/lib/ext

-------------------------------------------------------------------------

There is nothing else it prints after the above line (java.ext.dirs:....)

I am using :

Java - 1.7.0_79

MS SQL server - 2008

jdbc driver - sqljdbc4.jar

Request you to please let me know what could be the cause of this error.

federate to SQL server while doing a windows desktop login

$
0
0
We have a SQL server which acts as a user data source for some of the SSO services for internal consumption.

Now, we are in the process of introducing Active Directory.


Post this, we expect that whenever a user logs into a windows desktop, he is directly authenticated / authorized with a active directory
when the user credentials are not present in the active directory, 
then, it should federate to the SQL server (containing the other users) and do the authentication / authorization. 
Is this possible?? 

Wrong Calculation

$
0
0

Sir while using SQLSERVER 2012 I have these codes

select top 1 reading,emp_start,emp_end  from bin1_final order by date

SELECT top 1 reading,(datediff(second,emp_start,emp_end)) as x, 3600 as y from bin1_final

SELECT top 1 (reading/(datediff(second,emp_start,emp_end))*3600) as y from bin1_final

The result looks like this

Please help


tqmd

Creating a schedule for my SQL Server Agent Job.

$
0
0

Hi,

Looking at the wizard in creating a scheduled job, I don't think I can find my desired schedule.

I want my job to start day 1 in the month, running every hour between 7 am - 6 pm, recuring every day until the 15th in the month. I find everything except the last step, stop the job day 16? Is that correct?

Sql​Connection.​Clear​All​Pools vs Ole​DbConnection.​Release​Object​Pool

$
0
0

First: what is the difference between the 2 functions?

see Msdn: Ole​DbConnection.​Release​Object​Pool-Method and Sql​Connection.​Clear​All​Pools-Method

Secondly we have a situation where our ERP-program needs to get exclusive access to one SQL-Server database. For our connections inside our program we close the connections, but before closing them we execute a "USE master", so returning them to the connection pool doesn't represent a problem. But we also use a 3rd party module (Crystal Reports for VS) which also opens and closes SQL connections: here we are sure that the connection has been closed at the end, the connection returns to the connection pool and we have to wait over one minute to get rid of that connection.

I tried both Release​Object​Pool and Clear​All​Pools, but the closed connection isn't dropped from the pool.

BTW. the Crystal Reports connections (2016) use the "Microsoft OLE DB Provider for SQL Server".

Crystal Reports has also an KB article:
2107357 - Windows.Form Viewer does not disconnect from the Database when the viewer object is close/Null

Any ideas?

Patrick

What steps are exactly needed to enable SQL Server usage of DB located on BitLockered drive?

$
0
0

Hello,

I did find out that SQL Server 14 (SSMS 17.9) is not able to serve query if the database is physically located on separate bit locked (BitLockered, BitLocker) drive.

Facts:

  1. I did try the same DB in classic placement hitting no problems.
  2. I did check that service account running SQL Server (Local System) has sufficient rights on folder on BitLockered drive. (The SYSTEM account has sufficient rights on folder.)
  3. I did try search Google.
  4. I tried also Bing but not so thouroughly.

I am running SQL Server Developer Edition on Windows 10 Professional edition on desktop.



Import numerous fixed-width text files into SQL Server

$
0
0

Hi,

I have numerous fixed-width text files (17K+), each one containing 42K+ rows.  I need to import them to SQL Server 2014 Standard Edition, using the file name as the table name in the destination database.

Each file has 7 columns with fixed-widths format:  ( 6, 4, 4, 6, 6, 6, 6 ).

I tried writing a Visual Studio desktop app but it was extremely slow, it hangs up all the time.

I'm not familiar with SSIS and would like to see if there's a bulk insert script that can handle this instead.

Appreciate any help.


Marilyn Gambone


Trigger after insert to use dbmail

$
0
0

I am planning to create a trigger after insert to send an email.

What would best practices?

commercial access from ruby

$
0
0
Hi,

I am writing a ruby program which needs to run queries on mssql.
I saw the documentation for ruby: https://docs.microsoft.com/en-us/sql/connect/ruby/ruby-driver-for-sql-server?view=sql-server-2017

My software is going to be distributed to my customers, the solution that is recommended uses freeTDS which is LGPL licensed.  

Does anyone know of a committal driver to mssql I can use (windows and linux)?
Is there a way to buy freeTDS ?
What is the recommendation for mssql driver for commercial distributed software ?

Thanks,
Aviram

SQL Server SP execute and print its result in a text file schedule basis.

$
0
0
how to fetch data via execute SP into text file and schedule it ?

MS Access cannot link to SQL Server table if a column name is 64 characters or more (i.e., effective limit 63 characters)

$
0
0

When the Linked Table Manager sees a column name in a SQL Server table with 64 characters, it only uses the first 63 characters of that column name.

After linking, an attempt to view table data will fail, with the message

"ODBC--call failed" 

"[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name "'123456789012345678901234567890123456789012345678901234567890123'."

The column name in my table on SQL Server is:

"1234567890123456789012345678901234567890123456789012345678901234" 

So Linked Table manager is truncating that for some reason.

I cannot find any documentation anywhere saying there is such a limit in ODBC linked tables.

Earlier before installing ODBC v17 (v17.3) driver, I had ODBC v13 and in that I also could not use a column name of 64 characters or more, though I believe I was seeing no error message (can't remember for sure), just that data view showed #NAME or #ERROR or something like that as the value for data in each column and row. 

The version of SQL Server is SQL Server 2017, on Windows 10 Pro.   The version of MS Access is from Office 365, (Access Version 1903), and is installed on the same Windows 10 Pro instance as the SQL Server is using.  For the Linked Table manager, my results are the same whether using the Windows Integration authentication as the SQL Server (login) authentication. 

Is this known and/or expected behavior?



SQL 2017 server native client 11.0 access after upgrade to Windows 2019

$
0
0

We had a Windows 2016 server with SQL 2017 installed and some SQL instances using TCP connection and the SQL browser.

All worked fine and each domain workstation could connect using SQL Server Native Client 11.0 or 10.0 in 32 or 64 bit DSN using SQL Server authentication or integrated authentication (depending on the instance used) and this for at least one or two years. SQL Native Client version 2011.110.2100.60

I did an inline upgrade of the server to Windows 2019.

Therafter: all databases run as expected, all instances are running and the SQL browser returns the correct ports.Checked with SQLServerManager14.msc on the server: all OK.

Nevertheless, no DSN (using the control panel to test) can make a connection on 32 or 64 bit, using SQL server authentication or integrated authentication. Only one workstation with MMC 2017 installed and SQL Native Client version 2011.110.6540.00 was able to connect.

So to get all connections and apps connecting the SQL 2017 server again (nothing has changed on the server, except for the server version), I had to install then MMC 2017 on each workstation, once installed the connections worked again as expected.

The MMC probably install's the new native client software, but if you download it from https://www.microsoft.com/en-us/download/confirmation.aspx?id=50402 you get the message you can't install it on windows 10 workstation.

Where can I download the 2011.110.6540.00 SQL Native client 11.0 version that is installable on Windows 10 without having to install the whole MMC 2017?

Thanks.

Luc


73 de ON7VU


Viewing all 4164 articles
Browse latest View live