Forum Discussion
Robert Tigwell
Apr 13, 2017Copper Contributor
Reference to database and/or server name in 'Azure.dbo.XXX' is not supported in this version of SQL
I am getting an error that seemingly indicates that I'm trying to use linked server or cross-database query when I am in no way trying to. I've opened a stackexchange question w/ full details but...
- Apr 14, 2017
David from MSDN forum put me on the right track:
- See what CASCADE DELETE FK constraints there are
- Inspect other table(s)
- See trigger on table with 3 part name in FROM clause
- Correct to 2 part name
- Dance
To see if there are FK relationships w/ DELETE CASCADE:
select * from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS where DELETE_RULE ='CASCADE'
ToniPohl
Dec 07, 2017MVP
Hi all,
I (still) have the same issue when using BCP.EXE. Locally, it works:
bcp "select * from myDB.dbo.myTable" queryout mytable.csv -S ServerName -c -T
When executing the same against SQL Azure, the following error results:
Error = [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Reference to database and/or server name in 'myDB.dbo.myTable' is not supported in this version of SQL Server.
Hope, this will be possible in near future...? Thx.
Theodore Sill
May 08, 2018Copper Contributor
Hi Tony,
I ran into the same issue using the bcp utility. I discovered there is another flag which may be used to specify the database: -d MyDatabaseName.
- artem_beziazychnyiJan 07, 2020Copper ContributorThanks Theodore Sill, It solved my problem!!!