How to update column_name in information_schema.columnsHow can I remove duplicate rows?How do I perform an IF…THEN in an SQL SELECT?How to return only the Date from a SQL Server DateTime datatypeHow to check if a column exists in a SQL Server table?How can foreign key constraints be temporarily disabled using T-SQL?How do I get list of all tables in a database using TSQL?How can I do an UPDATE statement with JOIN in SQL?How do I escape a single quote in SQL Server?Update a table using JOIN in SQL Server?How do I UPDATE from a SELECT in SQL Server?
How can I tell what kind of genitals people have without gender?
My colleague is constantly blaming me for his errors
Put my student loan in parents’ second mortgage - help?
Why is Japan trying to have a better relationship with Iran?
Who are these Discworld wizards from this picture?
Why was Mal so quick to drop Bester in favour of Kaylee?
Adjective for 'made of pus' or 'corrupted by pus' or something of something of pus
Can European countries bypass the EU and make their own individual trade deal with the U.S.?
What is this mount with two buttons on side of Vivitar 75-205mm lens?
I need help with pasta
Which is better for keeping data: primary partition or logical partition?
I just started should I accept a farewell lunch for a coworker I don't know?
Closest Proximity of Oceans to Freshwater Springs
Variable dimensional integrals
I hit a pipe with a mower and now it won't turn
Different budgets within roommate group
Copy group of files (Filename*) to backup (Filename*.bak)
Is there a legal way for US presidents to extend their terms beyond two terms of four years?
Is it okay to fade a human face just to create some space to place important content over it?
What game is this character in the Pixels movie from?
Can you actually break an FPGA by programming it wrong?
When Chaos Bolt leaps, do you determine a new damage type?
Will writing actual numbers instead of writing them with letters affect readership?
What will happen if I checked in for another room in the same hotel, but not for the booked one?
How to update column_name in information_schema.columns
How can I remove duplicate rows?How do I perform an IF…THEN in an SQL SELECT?How to return only the Date from a SQL Server DateTime datatypeHow to check if a column exists in a SQL Server table?How can foreign key constraints be temporarily disabled using T-SQL?How do I get list of all tables in a database using TSQL?How can I do an UPDATE statement with JOIN in SQL?How do I escape a single quote in SQL Server?Update a table using JOIN in SQL Server?How do I UPDATE from a SELECT in SQL Server?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Unable to update the column_name column in information_schema.columns
I have a table named 'knd' in MS-SQL server. Now I want to alter the column names of all the columns in this table in this way:
for example, my column names in this table are: Fuel category, fuel type, end date, start date
I want to update these names to [Fuel category], [fuel type], [end date], [start date]. i.e column names must include [] and the updation should be done in one shot.
What I have tried:
update INFORMATION_SCHEMA.COLUMNS
Set COLUMN_NAME = CONCAT('[',COLUMN_NAME,']')
where TABLE_NAME = 'knd'
I get the below error:
Ad hoc updates to system catalogs are not allowed.
I tried to reconfigure with override as below, but didn't work:
exec sp_configure 'allow updates','1';
go
reconfigure with override
go
even if I have to use exec sp_rename, how can I do it for all columns in one shot. I believe using sp_rename requires more manual intervention as my column names might change tommorow .
Can someone please help to accomplish this?
sql-server tsql
|
show 3 more comments
Unable to update the column_name column in information_schema.columns
I have a table named 'knd' in MS-SQL server. Now I want to alter the column names of all the columns in this table in this way:
for example, my column names in this table are: Fuel category, fuel type, end date, start date
I want to update these names to [Fuel category], [fuel type], [end date], [start date]. i.e column names must include [] and the updation should be done in one shot.
What I have tried:
update INFORMATION_SCHEMA.COLUMNS
Set COLUMN_NAME = CONCAT('[',COLUMN_NAME,']')
where TABLE_NAME = 'knd'
I get the below error:
Ad hoc updates to system catalogs are not allowed.
I tried to reconfigure with override as below, but didn't work:
exec sp_configure 'allow updates','1';
go
reconfigure with override
go
even if I have to use exec sp_rename, how can I do it for all columns in one shot. I believe using sp_rename requires more manual intervention as my column names might change tommorow .
Can someone please help to accomplish this?
sql-server tsql
4
Why would you want your column's name to include brackets?! If you have an object called[Fuel category]
you would have to reference it as[[Fuel category]]]
in your SQL. Don't do this!
– Larnu
Mar 25 at 12:55
2
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
2
Are you sure you want to rename your columns that way? Typically, the[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remainFuel category
, but client code must write that as[Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing[[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e.Fuel_category
), or fix your client code to useQUOTENAME
.
– Jeroen Mostert
Mar 25 at 12:57
1
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
2
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00
|
show 3 more comments
Unable to update the column_name column in information_schema.columns
I have a table named 'knd' in MS-SQL server. Now I want to alter the column names of all the columns in this table in this way:
for example, my column names in this table are: Fuel category, fuel type, end date, start date
I want to update these names to [Fuel category], [fuel type], [end date], [start date]. i.e column names must include [] and the updation should be done in one shot.
What I have tried:
update INFORMATION_SCHEMA.COLUMNS
Set COLUMN_NAME = CONCAT('[',COLUMN_NAME,']')
where TABLE_NAME = 'knd'
I get the below error:
Ad hoc updates to system catalogs are not allowed.
I tried to reconfigure with override as below, but didn't work:
exec sp_configure 'allow updates','1';
go
reconfigure with override
go
even if I have to use exec sp_rename, how can I do it for all columns in one shot. I believe using sp_rename requires more manual intervention as my column names might change tommorow .
Can someone please help to accomplish this?
sql-server tsql
Unable to update the column_name column in information_schema.columns
I have a table named 'knd' in MS-SQL server. Now I want to alter the column names of all the columns in this table in this way:
for example, my column names in this table are: Fuel category, fuel type, end date, start date
I want to update these names to [Fuel category], [fuel type], [end date], [start date]. i.e column names must include [] and the updation should be done in one shot.
What I have tried:
update INFORMATION_SCHEMA.COLUMNS
Set COLUMN_NAME = CONCAT('[',COLUMN_NAME,']')
where TABLE_NAME = 'knd'
I get the below error:
Ad hoc updates to system catalogs are not allowed.
I tried to reconfigure with override as below, but didn't work:
exec sp_configure 'allow updates','1';
go
reconfigure with override
go
even if I have to use exec sp_rename, how can I do it for all columns in one shot. I believe using sp_rename requires more manual intervention as my column names might change tommorow .
Can someone please help to accomplish this?
sql-server tsql
sql-server tsql
asked Mar 25 at 12:53
Varun Shekhar RCVarun Shekhar RC
12 bronze badges
12 bronze badges
4
Why would you want your column's name to include brackets?! If you have an object called[Fuel category]
you would have to reference it as[[Fuel category]]]
in your SQL. Don't do this!
– Larnu
Mar 25 at 12:55
2
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
2
Are you sure you want to rename your columns that way? Typically, the[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remainFuel category
, but client code must write that as[Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing[[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e.Fuel_category
), or fix your client code to useQUOTENAME
.
– Jeroen Mostert
Mar 25 at 12:57
1
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
2
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00
|
show 3 more comments
4
Why would you want your column's name to include brackets?! If you have an object called[Fuel category]
you would have to reference it as[[Fuel category]]]
in your SQL. Don't do this!
– Larnu
Mar 25 at 12:55
2
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
2
Are you sure you want to rename your columns that way? Typically, the[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remainFuel category
, but client code must write that as[Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing[[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e.Fuel_category
), or fix your client code to useQUOTENAME
.
– Jeroen Mostert
Mar 25 at 12:57
1
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
2
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00
4
4
Why would you want your column's name to include brackets?! If you have an object called
[Fuel category]
you would have to reference it as [[Fuel category]]]
in your SQL. Don't do this!– Larnu
Mar 25 at 12:55
Why would you want your column's name to include brackets?! If you have an object called
[Fuel category]
you would have to reference it as [[Fuel category]]]
in your SQL. Don't do this!– Larnu
Mar 25 at 12:55
2
2
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
2
2
Are you sure you want to rename your columns that way? Typically, the
[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remain Fuel category
, but client code must write that as [Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing [[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e. Fuel_category
), or fix your client code to use QUOTENAME
.– Jeroen Mostert
Mar 25 at 12:57
Are you sure you want to rename your columns that way? Typically, the
[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remain Fuel category
, but client code must write that as [Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing [[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e. Fuel_category
), or fix your client code to use QUOTENAME
.– Jeroen Mostert
Mar 25 at 12:57
1
1
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
2
2
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00
|
show 3 more comments
2 Answers
2
active
oldest
votes
First: This is a terrible idea, as everyone wrote in the comments. Adding square brackets to column names will only force you to refer to the columns with double square brackets - to refer to a column named [fuel type]
you will have to write [[fuel type]]]
.
Second, You can't directly update system tables or the views that relies on them. Everything in the sys
schema and in the INFORMATION_SCHEMA
schema is readonly. To rename a column in a view, you must write an alter view
statement, or use sp_rename
. To rename a column in a table, you must write an alter table
statement or use sp_rename
.
That being said, it's best to first find all objects that depends on the column you want to rename, becuase renaming a column will not rename every reference to it, so you might break stuff when renaming.
You can query the built in table valued function sys.dm_sql_referencing_entities
to get dependencies of an object in SQL Server.
add a comment |
Quotename does the needful in my case as suggested by @jeroen-mostert in one of the above comments!!.
Below is my simple code snippet to perform this for all the columns in my table set.
Select STUFF((SELECT N',' + QUOTENAME(C.COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS C
WHERE C.TABLE_NAME = 'knd'
FOR XML PATH(N''),TYPE).value(N'.',N'nvarchar(MAX)'),1,1,N'')
Result is as follows:
[Start Date_(MM-DD-YYYY)],[End Date_(MM-DD-YYYY)],[mode],[scac],[fuel category],[Fuel Type],[Base],[Escalator],[Surcharge],[FSC @ $3.2],[Step],[Co_ID]
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338284%2fhow-to-update-column-name-in-information-schema-columns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
First: This is a terrible idea, as everyone wrote in the comments. Adding square brackets to column names will only force you to refer to the columns with double square brackets - to refer to a column named [fuel type]
you will have to write [[fuel type]]]
.
Second, You can't directly update system tables or the views that relies on them. Everything in the sys
schema and in the INFORMATION_SCHEMA
schema is readonly. To rename a column in a view, you must write an alter view
statement, or use sp_rename
. To rename a column in a table, you must write an alter table
statement or use sp_rename
.
That being said, it's best to first find all objects that depends on the column you want to rename, becuase renaming a column will not rename every reference to it, so you might break stuff when renaming.
You can query the built in table valued function sys.dm_sql_referencing_entities
to get dependencies of an object in SQL Server.
add a comment |
First: This is a terrible idea, as everyone wrote in the comments. Adding square brackets to column names will only force you to refer to the columns with double square brackets - to refer to a column named [fuel type]
you will have to write [[fuel type]]]
.
Second, You can't directly update system tables or the views that relies on them. Everything in the sys
schema and in the INFORMATION_SCHEMA
schema is readonly. To rename a column in a view, you must write an alter view
statement, or use sp_rename
. To rename a column in a table, you must write an alter table
statement or use sp_rename
.
That being said, it's best to first find all objects that depends on the column you want to rename, becuase renaming a column will not rename every reference to it, so you might break stuff when renaming.
You can query the built in table valued function sys.dm_sql_referencing_entities
to get dependencies of an object in SQL Server.
add a comment |
First: This is a terrible idea, as everyone wrote in the comments. Adding square brackets to column names will only force you to refer to the columns with double square brackets - to refer to a column named [fuel type]
you will have to write [[fuel type]]]
.
Second, You can't directly update system tables or the views that relies on them. Everything in the sys
schema and in the INFORMATION_SCHEMA
schema is readonly. To rename a column in a view, you must write an alter view
statement, or use sp_rename
. To rename a column in a table, you must write an alter table
statement or use sp_rename
.
That being said, it's best to first find all objects that depends on the column you want to rename, becuase renaming a column will not rename every reference to it, so you might break stuff when renaming.
You can query the built in table valued function sys.dm_sql_referencing_entities
to get dependencies of an object in SQL Server.
First: This is a terrible idea, as everyone wrote in the comments. Adding square brackets to column names will only force you to refer to the columns with double square brackets - to refer to a column named [fuel type]
you will have to write [[fuel type]]]
.
Second, You can't directly update system tables or the views that relies on them. Everything in the sys
schema and in the INFORMATION_SCHEMA
schema is readonly. To rename a column in a view, you must write an alter view
statement, or use sp_rename
. To rename a column in a table, you must write an alter table
statement or use sp_rename
.
That being said, it's best to first find all objects that depends on the column you want to rename, becuase renaming a column will not rename every reference to it, so you might break stuff when renaming.
You can query the built in table valued function sys.dm_sql_referencing_entities
to get dependencies of an object in SQL Server.
edited Mar 25 at 14:11
Larnu
27.7k6 gold badges20 silver badges33 bronze badges
27.7k6 gold badges20 silver badges33 bronze badges
answered Mar 25 at 13:11
Zohar PeledZohar Peled
59.3k7 gold badges35 silver badges77 bronze badges
59.3k7 gold badges35 silver badges77 bronze badges
add a comment |
add a comment |
Quotename does the needful in my case as suggested by @jeroen-mostert in one of the above comments!!.
Below is my simple code snippet to perform this for all the columns in my table set.
Select STUFF((SELECT N',' + QUOTENAME(C.COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS C
WHERE C.TABLE_NAME = 'knd'
FOR XML PATH(N''),TYPE).value(N'.',N'nvarchar(MAX)'),1,1,N'')
Result is as follows:
[Start Date_(MM-DD-YYYY)],[End Date_(MM-DD-YYYY)],[mode],[scac],[fuel category],[Fuel Type],[Base],[Escalator],[Surcharge],[FSC @ $3.2],[Step],[Co_ID]
add a comment |
Quotename does the needful in my case as suggested by @jeroen-mostert in one of the above comments!!.
Below is my simple code snippet to perform this for all the columns in my table set.
Select STUFF((SELECT N',' + QUOTENAME(C.COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS C
WHERE C.TABLE_NAME = 'knd'
FOR XML PATH(N''),TYPE).value(N'.',N'nvarchar(MAX)'),1,1,N'')
Result is as follows:
[Start Date_(MM-DD-YYYY)],[End Date_(MM-DD-YYYY)],[mode],[scac],[fuel category],[Fuel Type],[Base],[Escalator],[Surcharge],[FSC @ $3.2],[Step],[Co_ID]
add a comment |
Quotename does the needful in my case as suggested by @jeroen-mostert in one of the above comments!!.
Below is my simple code snippet to perform this for all the columns in my table set.
Select STUFF((SELECT N',' + QUOTENAME(C.COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS C
WHERE C.TABLE_NAME = 'knd'
FOR XML PATH(N''),TYPE).value(N'.',N'nvarchar(MAX)'),1,1,N'')
Result is as follows:
[Start Date_(MM-DD-YYYY)],[End Date_(MM-DD-YYYY)],[mode],[scac],[fuel category],[Fuel Type],[Base],[Escalator],[Surcharge],[FSC @ $3.2],[Step],[Co_ID]
Quotename does the needful in my case as suggested by @jeroen-mostert in one of the above comments!!.
Below is my simple code snippet to perform this for all the columns in my table set.
Select STUFF((SELECT N',' + QUOTENAME(C.COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS C
WHERE C.TABLE_NAME = 'knd'
FOR XML PATH(N''),TYPE).value(N'.',N'nvarchar(MAX)'),1,1,N'')
Result is as follows:
[Start Date_(MM-DD-YYYY)],[End Date_(MM-DD-YYYY)],[mode],[scac],[fuel category],[Fuel Type],[Base],[Escalator],[Surcharge],[FSC @ $3.2],[Step],[Co_ID]
answered Mar 25 at 18:07
Varun Shekhar RCVarun Shekhar RC
12 bronze badges
12 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338284%2fhow-to-update-column-name-in-information-schema-columns%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
Why would you want your column's name to include brackets?! If you have an object called
[Fuel category]
you would have to reference it as[[Fuel category]]]
in your SQL. Don't do this!– Larnu
Mar 25 at 12:55
2
You can not edit the information schema tables, it is for information only. You need to do updates for changes. You can use the information schema tables to find all the columns you want and do dynamic SQL updates by looping through all the values in the information schema tables
– Brad
Mar 25 at 12:56
2
Are you sure you want to rename your columns that way? Typically, the
[column]
syntax is encountered when you need to escape columns with spaces in the name. That is, the column's name should remainFuel category
, but client code must write that as[Fuel category]
. You cannot rename the column and expect client code to then pass the name correctly, because the correct escaped name then becomes the mighty confusing[[Fuel category]]]
. If your client code has trouble with these names, consider removing the spaces (i.e.Fuel_category
), or fix your client code to useQUOTENAME
.– Jeroen Mostert
Mar 25 at 12:57
1
Do NOT use brackets in your column names, very bad and could cause many issues
– Brad
Mar 25 at 12:57
2
Also, what do you mean "as my column names might change tommorow". Why are you column names changing on a frequent basis? Object names should be pretty static. it's your data that changing a lot, not its definition.
– Larnu
Mar 25 at 13:00