Quantcast
Channel: SQL Server Express forum
Viewing all 3319 articles
Browse latest View live

Failing to execute ADO Command with NVarChar(max) parameter. "Parameter object is improperly defined."

$
0
0

Hello mighty gurus of the internet,

We have a table that stores data about emails. One of the columns is an NVarChar(max) called "Body" that stores the body of the email.

We have an access front end that's written in VBA, which uses ADO to communicate with the database.

The SQL Server back end has a stored procedure called "Add_Email_To_Request" which has the following definition:

CREATE PROCEDURE [dbo].[Add_Email_To_Request] 
	@Req_ID int,
	@Sender_Name NVarChar(255),
	@Sender_EmAddress NVarChar(255),
	@Rcpt_Datetime DateTime,
	@Subject NVarChar(255),
	@Body NVarChar(max) = Null
AS
BEGIN
	SET NOCOUNT ON;

    INSERT INTO Cust_Emails
		(
		Req_ID,
		Sender_Name,
		Sender_EmAddress,
		Rcpt_DateTime,
		Subject_Line,
		Body
		)
	VALUES
		(
		@Req_ID,
		@Sender_Name,
		@Sender_EmAddress,
		@Rcpt_Datetime,
		@Subject,
		@Body
		)
END
GO

From the front end, we wish to execute the procedure using an ADO command object, but--when we try--we get an error saying "Parameter object is improperly defined. Inconsistent or incomplete information was provided."

If we modify the definition of the stored procedure to NVarChar(4000) and use Left(body,4000) in the front end to truncate the string the program executes seamlessly, but we'd like to store the entire email if possible. 

Here are some system/environment details:

SQL Server Management Studio 15.0.18098.0
Microsoft Analysis Services Client Tools15.0.1300.89
Microsoft Data Access Components (MDAC)10.0.14393.0
Microsoft MSXML 3.0 6.0 
Microsoft Internet Explorer 9.11.14393.0
Microsoft .NET Framework4.0.30319.42000
Operating System6.3.14393

Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64)   Aug 22 2017 17:04:49   Copyright (C) 2017 Microsoft Corporation  Express Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 14393: ) 

What could be causing this frustrating problem?

Million thanks,

Daniel Gesua


SQL Server Express 2017 free edition

$
0
0
Is "SQL Server Express 2017 free edition" the latest FREE edition? 

Parent Child Tables from a flat table

$
0
0

I was wondering if someone could help me with this CTE. 
How do I convert data to a Parent, children, grand children to n levels?. I tried recursive CTE's in a table valued function but its not bringing back the data in the format  I want. I need the data to be split into Parent, Child tables. It almost looks like I need to break up that data into 2 temp tables and use the merge, output clause to cause the ID,ParentID relationship? 
Can someone please suggest

    CREATE TABLE [dbo].[SignerRelationship](
[SignerRelationshipId] [int] IDENTITY(1,1) NOT NULL,
[ParentId] [int] NOT NULL,
[ParentRelationshipTypeId] [int] NOT NULL,
[ChildId] [int] NOT NULL,
[ChildRelationshipTypeId] [int] NOT NULL,
         CONSTRAINT [SignerRelationshipPK] PRIMARY KEY CLUSTERED 
        (
[SignerRelationshipId] ASC
        )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
        ) ON [PRIMARY]

        GO


    SignerRelationshipId,ParentId,ParentRelationshipTypeId,ChildId,ChildRelationshipTypeId
        1,795,1000,525,1001
        3,795,1000,28416,1001
        4,795,1000,35398,1001
        5,795,1000,6000770,1001
        6,795,1000,6001052,1001
        7,795,1000,6000771,1001
        8,28416,1001,6000498,1001
        9,35398,1001,35458,1001
        11,35398,1001,35458,1
        12,35398,1000,4836632,1

I tried this without breaking up into Parent,Child tables. It doesn't look right. 

          WITH Hierarchy 
        AS
        (
      SELECT 0 as level ,*
  FROM [SignerRelationship] 
  WHERE [ParentId] = 795
  UNION ALL
     SELECT Hierarchy.level + 1 as level ,[SignerRelationship].*
  FROM [SignerRelationship]  JOIN
  Hierarchy  ON [SignerRelationship].[ParentId] = Hierarchy.[ChildId]

        )
          SELECT * from Hierarchy 




Thank you very much.

                                                                                            

Upgrade SQL Express

$
0
0

Hi,

Is it possible for me to upgrade the SQL express to standard edition moving forward as I'm currently not sure how much data I will get? Can provide me detail how to go about and what is the pricing like?

THanks

Azhari

Linked Server Sql 2014 Express

$
0
0
AnyONE knows why I can't connect to SQL server 2014 Express, I am using Sql Server 2012 Standard/Enterprise

Out of Memory Issue

$
0
0

Hi

We use a piece of software that requires SQL Server Express 2014 (SP3). We have an intermittent issue where every so often a 'Out of Memory' error message appears which crashes the program. 

Is there something I can do to fix the issue on the SQL Server?

Thanks

Can't install or can't download media for offline install

SQL Server 2017 Express ISO

$
0
0

Kindly provide the ISO file of the SQL Server 2017 express.


Windows could not start the SQL Server, SQL Server Express 2014, error 3417

$
0
0

We have SQL Server Express, Advanced 2014 running on Windows 7. It has been running for several years. Yesterday morning it was not running. Attempting to restart the service gave the error, "Windows could not start the SQL Server (MEMBERSLINK) on Local Computer. ... error code 3417." The database files are located on their own drive, F:. I've tried restoring all the files on that drive, twice, from two different backups. Same error. One post recommended re-installing SQL Server. I tried that. I could not install a new instance with the same instance name ("already exists"), but installing with the same instance name gave me a 1607 error when I tried to start. I've tried numerous suggestions found on the web. I'm out of ideas. Unless someone here can help, all I can think of to do is to wipe the computer, reinstall Windows from scratch, reinstall SQL Server, and restore the database .bak files.

Ideas?


Import of interval column from teradata to SQL Server

$
0
0

I have a SQL Server 2014 Express installed on my Surface Pro, Windows 10, 64 bit.

I am trying to import a table from Teradata into SQL Server, using a linked server. This table in Teradata has a column with data type interval time to minute that is causing the issue. The value in the column is 0:18.

In SQL Server, I do something like this :

select <mycol>
into <SQLTable>
from openquery(<TERADATADB>,
               'select *
                from <TDBD>.<TDTable>') T 

I get a result which is a binary(6) and the value is 0x000000000000 which corresponds to ASCII 0. 

I don't mind that it was converted to binary but at least I would expect to have 0x303A31380000 which is the binary equivalent of '0:18' as returned in the cast below run in SQL Server.

select cast('0:18' as binary(6))

Do you have any idea why this issue? Should I reinstall my SQL Server?

Thanks for your help.

NEED EOL for SQL Server 2016 Express / Cumulative Update 13.0.5337.0 / KB449256 / Release Date May 22, 2019

$
0
0

12JUL2019 @ 1451Z

Looking for a definitive End of Life Date on this SQL Cumulative Update - EOL is critical for continued Express usage.

SQL Server 2016 Express  Lifecycle start date 6/1/2019  / Service Pack Support End Date 1/9/2018  / See latest Service Pack Listing for this product for end of support dates.

https://support.microsoft.com/en-us/lifecycle/search?alpha=SQL%20Server%202016%20Express

The latest Cumulative Update is CU # 7 / CU Version 13.0.5537.0 / KB449256 with a Release date of May 22, 2019.

NONE of the Cumulative Updates for SQL Server 2016 Express (you need to expand the “applies to” to see the SQL Express is included) have End of Life Dates. -https://support.microsoft.com/en-us/help/3177312/sql-server-2016-build-versions

Thank you in advance for your assistance!

How to fix warning 26003 while uninstall SQL Server 2008 R2

$
0
0

I'm getting  above warning message while uninstall SQL Server 2008 R2. I tried some of the online solutions but not able solve it 

Please make sure explain bit more clear way.Could please help me to solve the issue and Much appreciated. 

Many Thanks

Mohan

How are, or should be, build update applied to SQL Server?

$
0
0

I've just spent days figuring out how to update a fresh download of SQL Server 2014 with the various builds from the various service packs (https://social.technet.microsoft.com/Forums/en-US/2957fc40-cb11-462c-95da-ae8ec59cb37d/windows-could-not-start-the-sql-server-sql-server-express-2014-error-3417?forum=sqlexpress). The build version of the original SQL Server 2014 I was updating was from back when I first installed it in 2016 which was the 3rd update of Service Pack 2.

My question is this ... I read on a Microsoft site during my ordeal, "Microsoft recommends ongoing, proactive installation of CUs as they become available." Do I read this correctly as there are NO means of getting automatic updates to SQL Server and that the sysadmin had to periodically check to see if there is an update and manually update it? Is that how it works?

Microsoft SQL Server 2016 (SP2) There was an unknown error applying the FILESTREAM settings. Check the parameters are valid. (0x80041008)

$
0
0

During enabling FILESTREAM  option in  SQL Server Configuration Manager (Server Instance -> Properties -> FileStream tab) I've got error:
There was an unknown error applying the FILESTREAM settings.  Check the parameters are valid. (0x80041008)

SQL sever logs located in does not contain any info
C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Log

How can i diagnose and fix this problem ?

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

FILESTREAM
---------------------------
There was an unknown error applying the FILESTREAM settings.

Check the parameters are valid. (0x80041008)
---------------------------
OK   
---------------------------


SQL Server Version info:
C:\Users\Administrator>sqlcmd
1> select @@version
2> go
Microsoft SQL Server 2016 (SP2) (KB4052908) - 13.0.5026.0 (X64)
        Mar 18 2018 09:11:49
        Copyright (c) Microsoft Corporation
        Express Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: )

C:\Users\Administrator>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows Server 2016 Standard
OS Version:                10.0.14393 N/A Build 14393

SQL 2016 sp1 SQLLocalDB versions errors with "Windows API call "RegGetValueW" returned error code: 0."

$
0
0

I have SQL LocalDB 2016 sp1 installed and when I execute at the command line "SQLLocalDB versions" I get the following error "Windows API call "RegGetValueW" returned error code: 0."

I used sysinternals procmon.exe to capture any errors accessing the registry.

The following path was not found that seems significant.  

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions\13.1

I loaded regedit and confirmed the path does not exist.  The registry does have

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions\13.0

SQL LocalDB installed with Visual Studio 2017 which is not SP1 runs without errors.

I have tried installing service packs for SQL, uninstalling/reinstalling.  I have reset windows 2 times.  In this final test I installed Windows 10 from scratch and installed only SQL Express Advanced with Sp1.  All Windows updates are installed.

I can't resolve this issue with reinstall or installing the updates.  

I do not find any hits in google for this error.  The error is on a clean install of Windows 10.

Thanks.


Upsizing MS Access to Sql Server

$
0
0
Hi I want to upsize a 100 MB Ms Acceess (2010) database to Sql server. Is the Sql Server express version the right choice? And what is the latest vesrion? The client has already Sql Server 2012 but they stricted me not to choose it because they use it for your ERP and very often they have problems and restart it.

Sccm database cas

$
0
0

When we run delete * from xxxx where smsuid=xxxx.xxx how does the line gets auto commited to the database when delete is a dml command

And what happens in case i write a query delete from xxxxx on the cas and close the sql mgmt studio when the query is in progress.do all rows in the table gets deleted. The database is running on sql managment studio 2016

SQL server for beginners

$
0
0

Hi 

I am fairly new to SQL server, in actual fact I am a fresher to the whole world of SQL and databases. My work experience has required me to upskill in this direction and I am loving it. I reckon I'd rank my skills and understanding somewhere just around basic level but then again my overall base in SQL/coding isn't the strongest. I work as an analyst and have strong Excel skills and a good understanding of VBA that I am transitioning into SQL. 

Can anyone please suggest a good starting reference or guides for me to improve on my skills. I am looking at strengthening my base in SQL coding and also get a good hang of databases and SQL server. 

Thanks heaps for all the help

cheers

Ron

SQL Server 2016 Express LocalDB Bootstrapper Package Download Fails

$
0
0
I was not able to find a SQL Server 2016 Express LocalDB prerequisite bootstrapper package for my setup program so I created my own. It worked great for awhile, but then the download would occasionally fail for some reason. Now it always fails. The download address I'm using in my package is https://download.microsoft.com/download/E/1/2/E12B3655-D817-49BA-B934-CEB9DAC0BAF3/SqlLocalDB.msi. If this URL is entered directly into the browser address, the download will fail just as it does with the bootstrapper package - even though it used to work fine. Does any have a new LocalDB 2016 download URL?

pmBrewer


Error starting sql server service: The request failed or the service did not respond in a timely fashion

$
0
0

Fresh install of the sql server express 14 and it fails to start. I checked the logs and i get the below message. There is no E drive in the server. I've tried to uninstall and install it a few times and same issue. Any help would be appreciated. Thanks

Event 17204

FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\model.mdf for file number 1. OS error: 3(The system cannot find the path secified.).

Viewing all 3319 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>