-1

As I am working on a project which requires login for different roles, like one for Consultant and other for Employee. so I have created two login pages. so is this a good idea to create two login page?

gaurav patni
  • 45
  • 1
  • 8

2 Answers2

0

Here's a trivial example:

declare @var int=1
select @var
go
declare @var int=1
select @var

Without GO separating the batches here, you couldn't redeclare the same variable twice

Daniel Marcus
  • 2,686
  • 1
  • 7
  • 13
0

SQL Server provides commands that are not Transact-SQL statements, but are recognized by the sqlcmd and osql utilities and SQL Server Management Studio Code Editor. These commands can be used to facilitate the readability and execution of batches and scripts.

GO signals the end of a batch of Transact-SQL statements to the SQL Server utilities. SYNTAX : GO [count]

count is a positive integer. The batch preceding GO will execute the specified number of times.